fix(react): conditionally load UI scripts to prevent document.createE…#7769
fix(react): conditionally load UI scripts to prevent document.createE…#7769chriscanin wants to merge 2 commits intomainfrom
Conversation
…lement crash in React Native
🦋 Changeset detectedLatest commit: d92209a The changes in this PR will be included in the next version bump. This PR includes changesets to release 6 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
!snapshot |
|
Hey @chriscanin - the snapshot version command generated the following package versions:
Tip: Use the snippet copy button below to quickly install the required packages. npm i @clerk/agent-toolkit@0.3.0-snapshot.v20260204233758 --save-exact
npm i @clerk/astro@3.0.0-snapshot.v20260204233758 --save-exact
npm i @clerk/backend@3.0.0-snapshot.v20260204233758 --save-exact
npm i @clerk/chrome-extension@3.0.0-snapshot.v20260204233758 --save-exact
npm i @clerk/clerk-js@6.0.0-snapshot.v20260204233758 --save-exact
npm i @clerk/dev-cli@1.0.0-snapshot.v20260204233758 --save-exact
npm i @clerk/expo@3.0.0-snapshot.v20260204233758 --save-exact
npm i @clerk/expo-passkeys@1.0.0-snapshot.v20260204233758 --save-exact
npm i @clerk/express@2.0.0-snapshot.v20260204233758 --save-exact
npm i @clerk/fastify@2.7.0-snapshot.v20260204233758 --save-exact
npm i @clerk/localizations@4.0.0-snapshot.v20260204233758 --save-exact
npm i @clerk/msw@0.0.1-snapshot.v20260204233758 --save-exact
npm i @clerk/nextjs@7.0.0-snapshot.v20260204233758 --save-exact
npm i @clerk/nuxt@2.0.0-snapshot.v20260204233758 --save-exact
npm i @clerk/react@6.0.0-snapshot.v20260204233758 --save-exact
npm i @clerk/react-router@3.0.0-snapshot.v20260204233758 --save-exact
npm i @clerk/shared@4.0.0-snapshot.v20260204233758 --save-exact
npm i @clerk/tanstack-react-start@1.0.0-snapshot.v20260204233758 --save-exact
npm i @clerk/testing@2.0.0-snapshot.v20260204233758 --save-exact
npm i @clerk/ui@1.0.0-snapshot.v20260204233758 --save-exact
npm i @clerk/upgrade@2.0.0-snapshot.v20260204233758 --save-exact
npm i @clerk/vue@2.0.0-snapshot.v20260204233758 --save-exact |
📝 WalkthroughWalkthroughThis pull request introduces a conditional loading mechanism for Clerk UI scripts to prevent ReferenceError exceptions. A new changeset documents this patch-level fix. In isomorphicClerk.ts, the code now conditionally loads the UI constructor based on a 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 inconclusive)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
@clerk/agent-toolkit
@clerk/astro
@clerk/backend
@clerk/chrome-extension
@clerk/clerk-js
@clerk/dev-cli
@clerk/expo
@clerk/expo-passkeys
@clerk/express
@clerk/fastify
@clerk/localizations
@clerk/nextjs
@clerk/nuxt
@clerk/react
@clerk/react-router
@clerk/shared
@clerk/tanstack-react-start
@clerk/testing
@clerk/ui
@clerk/upgrade
@clerk/vue
commit: |
Description
This fixes a bug that is happening with core-3 expo release:
Checklist
pnpm testruns as expected.pnpm buildruns as expected.Type of change
Summary by CodeRabbit
Bug Fixes