Repository navigation
fix(expo-native-components): keep custom pages open when native sign-in lands - #10899
Conversation
… mounts The new test fails on main. ClerkUserProfileCustomPageState pops a presented custom page when the native user goes from null to a signed-in user.
…in lands userDidChange now invalidates navigation only when a previously observed user changes. A user that arrives after the profile mounted signed out no longer pops the presented page.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
🦋 Changeset detectedLatest commit: 716b3b5 The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 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 |
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
|
@clerk/astro
@clerk/backend
@clerk/chrome-extension
@clerk/clerk-js
@clerk/electron
@clerk/electron-passkeys
@clerk/eslint-plugin
@clerk/expo
@clerk/expo-biometrics
@clerk/expo-google-signin
@clerk/expo-native-components
@clerk/expo-passkeys
@clerk/express
@clerk/fastify
@clerk/hono
@clerk/localizations
@clerk/mosaic
@clerk/nextjs
@clerk/nuxt
@clerk/react
@clerk/react-router
@clerk/shared
@clerk/tanstack-react-start
@clerk/testing
@clerk/ui
@clerk/upgrade
@clerk/vue
commit: |
API Changes Report
Summary
No API Changes DetectedAll packages have stable APIs with no detected changes. Report generated by Break Check Last ran on |

Description
On Android, a custom page in
UserProfileViewclosed right after it opened if the profile mounted before native had the session. When the user then arrived,userDidChangereadnullto user as an account switch and popped the page. This is the flakyembedded-profile.e2e.tstest on release runs.Now only a change away from a known user pops the page. iOS has the same logic in
ClerkNativeBridge.swiftand is unchanged, since it hasn't flaked.The recordings below use a local patch on both builds, not committed. It delays native sign-in and holds the user back from
userDidChangefor 2.5s, so the page opens before the user arrives every time. The before run also has the olduserDidChangerestored locally, which is why both runs name the same commit.Checklist
pnpm testruns as expected.pnpm buildruns as expected.Type of change
🤖 Generated with Claude under Rob's supervision.
Verified on an Android emulator. Run
r20261118-094048-2d51onverify-android-1 (emulator-5560)at716b3b58dfdc, 1 of 1 passed. Before is runr20261118-093934-76e5at716b3b58dfdc, 0 of 1 passed.evidence-dfbf7212bbe8d59f-2.mp4
evidence-dfbf7212bbe8d59f-1.mp4