René's URL Explorer Experiment


Title: TypeError: Cannot read property '__internal_toSnapshot' of undefined when using __experimental_resourceCache in ClerkProvider (Expo App Offline Support) · Issue #6010 · clerk/javascript · GitHub

Open Graph Title: TypeError: Cannot read property '__internal_toSnapshot' of undefined when using __experimental_resourceCache in ClerkProvider (Expo App Offline Support) · Issue #6010 · clerk/javascript

X Title: TypeError: Cannot read property '__internal_toSnapshot' of undefined when using __experimental_resourceCache in ClerkProvider (Expo App Offline Support) · Issue #6010 · clerk/javascript

Description: Preliminary Checks I have reviewed the documentation: https://clerk.com/docs I have searched for existing issues: https://github.com/clerk/javascript/issues I have not already reached out to Clerk support via email or Discord (if you hav...

Open Graph Description: Preliminary Checks I have reviewed the documentation: https://clerk.com/docs I have searched for existing issues: https://github.com/clerk/javascript/issues I have not already reached out to Clerk ...

X Description: Preliminary Checks I have reviewed the documentation: https://clerk.com/docs I have searched for existing issues: https://github.com/clerk/javascript/issues I have not already reached out to Clerk ...

Opengraph URL: https://github.com/clerk/javascript/issues/6010

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"TypeError: Cannot read property '__internal_toSnapshot' of undefined when using __experimental_resourceCache in ClerkProvider (Expo App Offline Support)","articleBody":"### Preliminary Checks\n\n- [x] I have reviewed the documentation: https://clerk.com/docs\n\n- [x] I have searched for existing issues: https://github.com/clerk/javascript/issues\n\n- [x] I have not already reached out to Clerk support via email or Discord (if you have, no need to open an issue here)\n\n- [x] This issue is not a question, general help request, or anything other than a bug report directly related to Clerk. Please ask questions in our Discord community: https://clerk.com/discord.\n\n\n### Reproduction\n\nhttps://github.com/clerk/clerk-expo-quickstart\n\n### Publishable key\n\npk_test_ZmFpdGhmdWwtbW9ua2Zpc2gtNS5jbGVyay5hY2NvdW50cy5kZXYk\n\n### Description\n\n#### Steps to reproduce:\n\n1. Follow the official Clerk Expo [offline support guide](https://clerk.com/docs/references/expo/offline-support).\n2. Set up \u003cClerkProvider /> with tokenCache and `__experimental_resourceCache` props:\n**Note:** Neither `@clerk/clerk-expo/resource-cache` (after before 2.9.0) nor `@clerk/clerk-expo/secure-store` (before 2.9.0) works:\n\n```tsx\n \u003cClerkProvider tokenCache={tokenCache} __experimental_resourceCache={resourceCache}>\n   {/* children */}\n \u003c/ClerkProvider>\n```\n\n3. Attempt to sign in using:\n\n```tsx\nconst signInResponse = await signIn.create({\n  strategy: 'password',\n  identifier: formData.email,\n  password: formData.password,\n})\n```\n\n#### Expected behavior:\n\nApp should support offline mode without throwing runtime errors when using `__experimental_resourceCache`.\n\n#### Actual behavior:\n\nApp throws an error:\n\n```\n[TypeError: Cannot read property '__internal_toSnapshot' of undefined]\n```\n\nThis happens as soon as `signIn.create(...)` is called, only when `__experimental_resourceCache` is present. When that prop is removed, everything works correctly.\n\n#### Reproduction in [clerk-expo-quickstart](https://github.com/clerk/clerk-expo-quickstart) \n\nhttps://github.com/user-attachments/assets/a9f9a723-eae2-43a7-8c65-870ed939d226\n\nOffline support is super important for our app since many users work in poor connectivity areas. Not sure if this is something wrong in my setup, the SDK, or how I'm using it. Any help or workaround would be awesome!\n\nThanks a lot for all the great work on this SDK!\n\n\n\n\n### Environment\n\n```Shell\nSystem:\n  OS: macOS 15.4.1\n  CPU: (8) arm64 Apple M1 Pro\n  Memory: 128.27 MB / 32.00 GB\n  Shell: 5.9 - /bin/zsh\nBinaries:\n  Node: 22.14.0 - ~/.nvm/versions/node/v22.14.0/bin/node\n  Yarn: 1.22.22 - ~/.nvm/versions/node/v22.14.0/bin/yarn\n  npm: 10.9.2 - ~/.nvm/versions/node/v22.14.0/bin/npm\n  pnpm: 10.9.0 - ~/.nvm/versions/node/v22.14.0/bin/pnpm\n  Watchman: 2024.10.28.00 - /opt/homebrew/bin/watchman\nBrowsers:\n  Chrome: 136.0.7103.114\n  Safari: 18.4\nnpmPackages:\n  @babel/core: ^7.26.10 => 7.26.10\n  @clerk/clerk-expo: ^2.8.5 => 2.8.5\n  @expo/vector-icons: ^14.0.4 => 14.0.4\n  @react-native-community/cli-server-api: ^15.1.0 => 15.1.3\n  @react-navigation/native: ^7.0.0 => 7.0.15\n  @types/jest: ^29.5.14 => 29.5.14\n  @types/react: ~18.3.12 => 18.3.18\n  @types/react-test-renderer: 18.0.7 => 18.0.7\n  expo: ^52.0.39 => 52.0.39\n  expo-constants: ~17.0.8 => 17.0.8\n  expo-font: ~13.0.4 => 13.0.4\n  expo-linking: ~7.0.5 => 7.0.5\n  expo-router: ~4.0.18 => 4.0.18\n  expo-secure-store: ~14.0.1 => 14.0.1\n  expo-splash-screen: ~0.29.22 => 0.29.22\n  expo-status-bar: ~2.0.1 => 2.0.1\n  expo-system-ui: ~4.0.8 => 4.0.8\n  expo-web-browser: ~14.0.2 => 14.0.2\n  jest: ^29.7.0 => 29.7.0\n  jest-expo: ~52.0.6 => 52.0.6\n  react: 18.3.1 => 18.3.1\n  react-dom: 18.3.1 => 18.3.1\n  react-native: 0.76.3 => 0.76.3\n  react-native-gesture-handler: ~2.24.0 => 2.24.0\n  react-native-reanimated: ~3.17.1 => 3.17.1\n  react-native-safe-area-context: 4.12.0 => 4.12.0\n  react-native-screens: ~4.9.2 => 4.9.2\n  react-native-web: ~0.19.13 => 0.19.13\n  react-test-renderer: 18.2.0 => 18.2.0\n  typescript: ~5.8.2 => 5.8.2\n```","author":{"url":"https://github.com/dzmitryFesik","@type":"Person","name":"dzmitryFesik"},"datePublished":"2025-05-26T21:10:56Z","url":"https://github.com/clerk/javascript/issues/6010"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:3363eeb0-b5c1-90f4-df78-5f3c2bb520af
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idB182:23725B:11F7643:1896B92:6AFB68DD
html-safe-nonce4a43b0325e602a2a7778b46eb343ba9b8787aa55c001582ac58e5136cc0f48db
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMTgyOjIzNzI1QjoxMUY3NjQzOjE4OTZCOTI6NkFGQjY4REQiLCJ2aXNpdG9yX2lkIjoiNzcwMjg2NTU5MDUxMDkwNTU2NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac875addca189097803a4005f652c52396b7caf0d1bee0fd3aa1128f864dd0879f
hovercard-subject-tagissue:3092064586
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/clerk/javascript/6010/issue_layout
twitter:imagehttps://opengraph.githubassets.com/98c6444c85e6075d1f08a217059724abbfb8f76693e00c60d5ad3d69c4fb21d1/clerk/javascript/issues/6010
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/98c6444c85e6075d1f08a217059724abbfb8f76693e00c60d5ad3d69c4fb21d1/clerk/javascript/issues/6010
og:image:altPreliminary Checks I have reviewed the documentation: https://clerk.com/docs I have searched for existing issues: https://github.com/clerk/javascript/issues I have not already reached out to Clerk ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamedzmitryFesik
hostnamegithub.com
expected-hostnamegithub.com
Noneea33d13c96d0ff66bd8fa906b193d2213536b78cb06b0c50a4632c58b1418f94
turbo-cache-controlno-preview
go-importgithub.com/clerk/javascript git https://github.com/clerk/javascript.git
octolytics-dimension-user_id49538330
octolytics-dimension-user_loginclerk
octolytics-dimension-repository_id438331492
octolytics-dimension-repository_nwoclerk/javascript
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id438331492
octolytics-dimension-repository_network_root_nwoclerk/javascript
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release59ef97164c52cf59bd10558ddec9c4f482763988
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/clerk/javascript/issues/6010#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fclerk%2Fjavascript%2Fissues%2F6010
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fclerk%2Fjavascript%2Fissues%2F6010
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=clerk%2Fjavascript
Reloadhttps://github.com/clerk/javascript/issues/6010
Reloadhttps://github.com/clerk/javascript/issues/6010
Reloadhttps://github.com/clerk/javascript/issues/6010
clerkhttps://github.com/clerk
javascripthttps://github.com/clerk/javascript
Codehttps://github.com/clerk/javascript
Issues45 (45)https://github.com/clerk/javascript/issues
Pull requests110 (110)https://github.com/clerk/javascript/pulls
Discussionshttps://github.com/clerk/javascript/discussions
Actionshttps://github.com/clerk/javascript/actions
Security and quality6 (6)https://github.com/clerk/javascript/security
Insightshttps://github.com/clerk/javascript/pulse
https://github.com/clerk/javascript
New issuehttps://github.com/login?return_to=https://github.com/clerk/javascript/issues/6010
New issuehttps://github.com/login?return_to=https://github.com/clerk/javascript/issues/6010
Bughttps://github.com/clerk/javascript/issues?q=type:"Bug"
#6016https://github.com/clerk/javascript/pull/6016
TypeError: Cannot read property '__internal_toSnapshot' of undefined when using __experimental_resourceCache in ClerkProvider (Expo App Offline Support)https://github.com/clerk/javascript/issues/6010#top
#6016https://github.com/clerk/javascript/pull/6016
https://github.com/tmilewski
bugSomething isn't workinghttps://github.com/clerk/javascript/issues?q=state%3Aopen%20label%3A%22bug%22
expohttps://github.com/clerk/javascript/issues?q=state%3Aopen%20label%3A%22expo%22
https://github.com/dzmitryFesik
dzmitryFesikhttps://github.com/dzmitryFesik
on May 26, 2025https://github.com/clerk/javascript/issues/6010#issue-3092064586
https://clerk.com/docshttps://clerk.com/docs
https://github.com/clerk/javascript/issueshttps://github.com/clerk/javascript/issues
https://clerk.com/discordhttps://clerk.com/discord
https://github.com/clerk/clerk-expo-quickstarthttps://github.com/clerk/clerk-expo-quickstart
offline support guidehttps://clerk.com/docs/references/expo/offline-support
clerk-expo-quickstarthttps://github.com/clerk/clerk-expo-quickstart
dzmitryFesikhttps://github.com/dzmitryFesik
needs-triageA ticket that needs to be triaged by a team memberhttps://github.com/clerk/javascript/issues?q=state%3Aopen%20label%3A%22needs-triage%22
on May 26, 2025https://github.com/clerk/javascript/issues/6010#event-17819473232
https://github.com/zocario
zocariohttps://github.com/zocario
on May 27, 2025https://github.com/clerk/javascript/issues/6010#issuecomment-2912345339
tmilewskihttps://github.com/tmilewski
expohttps://github.com/clerk/javascript/issues?q=state%3Aopen%20label%3A%22expo%22
on May 27, 2025https://github.com/clerk/javascript/issues/6010#event-17831561444
tmilewskihttps://github.com/tmilewski
on May 27, 2025https://github.com/clerk/javascript/issues/6010#event-17832545045
https://github.com/wobsoriano
wobsorianohttps://github.com/wobsoriano
on May 27, 2025https://github.com/clerk/javascript/issues/6010#issuecomment-2912851068
@zocariohttps://github.com/zocario
https://github.com/zocario
zocariohttps://github.com/zocario
on May 27, 2025https://github.com/clerk/javascript/issues/6010#issuecomment-2912862961
@zocariohttps://github.com/zocario
@wobsorianohttps://github.com/wobsoriano
https://github.com/wobsoriano
wobsorianohttps://github.com/wobsoriano
on May 27, 2025https://github.com/clerk/javascript/issues/6010#issuecomment-2913445986
Xcode 16.4 RChttps://developer.apple.com/download/applications/
#5891https://github.com/clerk/javascript/issues/5891
herehttps://github.com/clerk/javascript/issues/5891#issuecomment-2910170170
https://github.com/dzmitryFesik
dzmitryFesikhttps://github.com/dzmitryFesik
on May 27, 2025https://github.com/clerk/javascript/issues/6010#issuecomment-2914107500
@wobsorianohttps://github.com/wobsoriano
https://github.com/dzmitryFesik
dzmitryFesikhttps://github.com/dzmitryFesik
on May 27, 2025https://github.com/clerk/javascript/issues/6010#issuecomment-2914110740
@zocariohttps://github.com/zocario
tmilewskihttps://github.com/tmilewski
expohttps://github.com/clerk/javascript/issues?q=state%3Aopen%20label%3A%22expo%22
on May 27, 2025https://github.com/clerk/javascript/issues/6010#event-17839554092
https://github.com/tmilewski
tmilewskihttps://github.com/tmilewski
on May 27, 2025https://github.com/clerk/javascript/issues/6010#issuecomment-2914421599
@dzmitryFesikhttps://github.com/dzmitryFesik
@zocariohttps://github.com/zocario
https://github.com/dzmitryFesik
dzmitryFesikhttps://github.com/dzmitryFesik
on May 28, 2025https://github.com/clerk/javascript/issues/6010#issuecomment-2915528706
@tmilewskihttps://github.com/tmilewski
https://github.com/zocario
zocariohttps://github.com/zocario
on May 28, 2025https://github.com/clerk/javascript/issues/6010#issuecomment-2915530428
https://pkg.pr.new/@clerk/clerk-expo@6016https://pkg.pr.new/@clerk/clerk-expo@6016
@tmilewskihttps://github.com/tmilewski
tmilewskihttps://github.com/tmilewski
completedhttps://github.com/clerk/javascript/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#6016https://github.com/clerk/javascript/pull/6016
on May 28, 2025https://github.com/clerk/javascript/issues/6010#event-17850315019
tmilewskihttps://github.com/tmilewski
on May 28, 2025https://github.com/clerk/javascript/issues/6010#event-17850315748
https://github.com/tmilewski
tmilewskihttps://github.com/tmilewski
on May 28, 2025https://github.com/clerk/javascript/issues/6010#issuecomment-2916422657
@dzmitryFesikhttps://github.com/dzmitryFesik
@zocariohttps://github.com/zocario
tmilewskihttps://github.com/tmilewski
bugSomething isn't workinghttps://github.com/clerk/javascript/issues?q=state%3Aopen%20label%3A%22bug%22
expohttps://github.com/clerk/javascript/issues?q=state%3Aopen%20label%3A%22expo%22
needs-triageA ticket that needs to be triaged by a team memberhttps://github.com/clerk/javascript/issues?q=state%3Aopen%20label%3A%22needs-triage%22
on May 28, 2025https://github.com/clerk/javascript/issues/6010#event-17853039298
tmilewskihttps://github.com/tmilewski
Bughttps://github.com/clerk/javascript/issues?q=type:"Bug"
on May 28, 2025https://github.com/clerk/javascript/issues/6010#event-17853043730
tmilewskihttps://github.com/tmilewski
completedhttps://github.com/clerk/javascript/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on May 29, 2025https://github.com/clerk/javascript/issues/6010#event-17868337469
Sign up for freehttps://github.com/signup?return_to=https://github.com/clerk/javascript/issues/6010
Sign in to commenthttps://github.com/login?return_to=https://github.com/clerk/javascript/issues/6010
tmilewskihttps://github.com/tmilewski
bugSomething isn't workinghttps://github.com/clerk/javascript/issues?q=state%3Aopen%20label%3A%22bug%22
expohttps://github.com/clerk/javascript/issues?q=state%3Aopen%20label%3A%22expo%22
Bughttps://github.com/clerk/javascript/issues?q=type:"Bug"
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.