René's URL Explorer Experiment


Title: fix(expo): recreate Android recomposer after reattach by D3OXY · Pull Request #9143 · clerk/javascript · GitHub

Open Graph Title: fix(expo): recreate Android recomposer after reattach by D3OXY · Pull Request #9143 · clerk/javascript

X Title: fix(expo): recreate Android recomposer after reattach by D3OXY · Pull Request #9143 · clerk/javascript

Description: Description Fixes #9142 Android native Clerk views cancel their parent Recomposer whenever the host temporarily detaches from its window. React Navigation can later reattach the same native view, leaving Compose content bound to a canceled parent composition context. This change makes the shared Android host own the complete composition lifecycle: setupView() ensures a live recomposer exists before setting Compose content, including when React Native Fabric updates props or measures content before window attachment; window attachment recreates content for every Compose-backed Clerk view, including AuthView, UserButton, and UserProfileView; window detachment disposes the composition and cancels and clears recomposer state; recovery checks the launched recomposition job rather than its parent supervisor job. iOS is unchanged. Validation Patched consumer app on Android API 36: cold start → profile image and Account UI work; details route → back → profile image and Account UI still work; AI Chat tab → Home tab → profile image and Account UI still work; repeated detach/reattach cycles remain interactive. Verified the Fabric pre-attachment failure path no longer sets Compose content without first assigning a live parent recomposer. pnpm --filter @clerk/expo... build pnpm --filter @clerk/expo test — 92 tests passed pnpm --filter @clerk/expo lint — no errors pnpm --filter @clerk/expo format:check Expo SDK 57 Android release fixture — BUILD SUCCESSFUL Checklist Full repository pnpm test runs as expected; targeted Expo tests pass. Full repository pnpm build runs as expected; filtered Expo dependency build passes. JSDoc is not applicable; no public API changed. Documentation is not applicable; this restores intended lifecycle behavior. Type of change 🐛 Bug fix 🌟 New feature 🔨 Breaking change 📖 Refactoring / dependency upgrade / documentation other: Summary by CodeRabbit Bug Fixes Fixed an Android issue where native UI components could crash before window attachment or become unresponsive after navigation and view reattach. Improved Compose native view lifecycle handling by starting rendering only when attached to a window and properly disposing and canceling rendering on detachment to prevent stale state.

Open Graph Description: Description Fixes #9142 Android native Clerk views cancel their parent Recomposer whenever the host temporarily detaches from its window. React Navigation can later reattach the same native view, l...

X Description: Description Fixes #9142 Android native Clerk views cancel their parent Recomposer whenever the host temporarily detaches from its window. React Navigation can later reattach the same native view, l...

Opengraph URL: https://github.com/clerk/javascript/pull/9143

X: @github

direct link

Domain: github.com

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/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:555e66fd-829e-679b-e368-94b9d51fd673
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idA3CA:345828:2CAF34E:3F68E2C:6AFAD6DC
html-safe-noncefdd89a07f4f5cf6c38268cc0f3057889898fa16c87c8f32e4121d49239c30140
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBM0NBOjM0NTgyODoyQ0FGMzRFOjNGNjhFMkM6NkFGQUQ2REMiLCJ2aXNpdG9yX2lkIjoiNDgxMTI3MzM3ODEwMDU5ODQ5MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac6f985e584a28effec140072da0961954ba57444cf199e2fda3f18b1091a893a1
hovercard-subject-tagpull_request:4040723106
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/clerk/javascript/pull/9143/files
twitter:imagehttps://avatars.githubusercontent.com/u/66240773?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/66240773?s=400&v=4
og:image:altDescription Fixes #9142 Android native Clerk views cancel their parent Recomposer whenever the host temporarily detaches from its window. React Navigation can later reattach the same native view, l...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None02f4c00e74911c7cd779fc232c3130cee49eb39fd0ed4bfe3eea3b82c7c18084
turbo-cache-controlno-preview
diff-viewunified
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 full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release33c41e9d150e44415272934d676dc63c57d89c3b
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/clerk/javascript/pull/9143/changes#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fclerk%2Fjavascript%2Fpull%2F9143%2Ffiles
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%2Fpull%2F9143%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=clerk%2Fjavascript
Reloadhttps://github.com/clerk/javascript/pull/9143/changes
Reloadhttps://github.com/clerk/javascript/pull/9143/changes
Reloadhttps://github.com/clerk/javascript/pull/9143/changes
clerkhttps://github.com/clerk
javascripthttps://github.com/clerk/javascript
Codehttps://github.com/clerk/javascript
Issues44 (44)https://github.com/clerk/javascript/issues
Pull requests113 (113)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
Sign up for GitHub https://github.com/signup?return_to=%2Fclerk%2Fjavascript%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fclerk%2Fjavascript%2Fissues%2Fnew%2Fchoose
D3OXYhttps://github.com/D3OXY
clerk:mainhttps://github.com/clerk/javascript/tree/main
D3OXY:d3oxy/fix-expo-android-compose-reattachhttps://github.com/D3OXY/javascript/tree/d3oxy/fix-expo-android-compose-reattach
Conversation 11 https://github.com/clerk/javascript/pull/9143
Commits 3 https://github.com/clerk/javascript/pull/9143/commits
Checks 23 https://github.com/clerk/javascript/pull/9143/checks
Files changed https://github.com/clerk/javascript/pull/9143/files
Please reload this pagehttps://github.com/clerk/javascript/pull/9143/changes
fix(expo): recreate Android recomposer after reattach https://github.com/clerk/javascript/pull/9143/changes#top
Show all changes 3 commits https://github.com/clerk/javascript/pull/9143/files
fbfa349 fix(expo): recreate Android recomposer after reattach D3OXY Jul 13, 2026 https://github.com/clerk/javascript/pull/9143/commits/fbfa3498828db32d405dde83b6cfc8a83d85eb91
4149758 fix(expo): initialize Compose content safely D3OXY Jul 13, 2026 https://github.com/clerk/javascript/pull/9143/commits/414975807bc9616aa29b8da0ca43628f552b4b86
c8bb8d5 Merge branch 'main' into d3oxy/fix-expo-android-compose-reattach wobsoriano Jul 15, 2026 https://github.com/clerk/javascript/pull/9143/commits/c8bb8d5fa56a35d9d5b8b607a872309adb0a6693
Clear filters https://github.com/clerk/javascript/pull/9143/files
Please reload this pagehttps://github.com/clerk/javascript/pull/9143/changes
Please reload this pagehttps://github.com/clerk/javascript/pull/9143/changes
fuzzy-lions-recompose.md https://github.com/clerk/javascript/pull/9143/changes#diff-61250ac2da44a5c5da034f4965dcedae5ba62b0fe553f803d0689a7b4fd8e21b
ClerkComposeNativeViewHost.kt https://github.com/clerk/javascript/pull/9143/changes#diff-d764ac3092490683f2704a665b9fab184de892d33f459e3df8b25c16f3b5ac19
ClerkUserButtonViewModule.kt https://github.com/clerk/javascript/pull/9143/changes#diff-86594360b69759a34b8d2f7002346fa494874b84176149707673895b80199a50
.changeset/fuzzy-lions-recompose.mdhttps://github.com/clerk/javascript/pull/9143/changes#diff-61250ac2da44a5c5da034f4965dcedae5ba62b0fe553f803d0689a7b4fd8e21b
View file https://github.com/D3OXY/javascript/blob/c8bb8d5fa56a35d9d5b8b607a872309adb0a6693/.changeset/fuzzy-lions-recompose.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/clerk/javascript/pull/9143/{{ revealButtonHref }}
packages/expo/android/src/main/java/expo/modules/clerk/ClerkComposeNativeViewHost.kthttps://github.com/clerk/javascript/pull/9143/changes#diff-d764ac3092490683f2704a665b9fab184de892d33f459e3df8b25c16f3b5ac19
View file https://github.com/D3OXY/javascript/blob/c8bb8d5fa56a35d9d5b8b607a872309adb0a6693/packages/expo/android/src/main/java/expo/modules/clerk/ClerkComposeNativeViewHost.kt
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/clerk/javascript/pull/9143/{{ revealButtonHref }}
https://github.com/clerk/javascript/pull/9143/changes#diff-d764ac3092490683f2704a665b9fab184de892d33f459e3df8b25c16f3b5ac19
wobsorianohttps://github.com/wobsoriano
Jul 16, 2026https://github.com/clerk/javascript/pull/9143/changes#r3595667616
Please reload this pagehttps://github.com/clerk/javascript/pull/9143/changes
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/clerk/javascript/pull/9143/changes
Please reload this pagehttps://github.com/clerk/javascript/pull/9143/changes
https://github.com/clerk/javascript/pull/9143/changes#diff-d764ac3092490683f2704a665b9fab184de892d33f459e3df8b25c16f3b5ac19
packages/expo/android/src/main/java/expo/modules/clerk/ClerkUserButtonViewModule.kthttps://github.com/clerk/javascript/pull/9143/changes#diff-86594360b69759a34b8d2f7002346fa494874b84176149707673895b80199a50
View file https://github.com/D3OXY/javascript/blob/c8bb8d5fa56a35d9d5b8b607a872309adb0a6693/packages/expo/android/src/main/java/expo/modules/clerk/ClerkUserButtonViewModule.kt
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/clerk/javascript/pull/9143/{{ revealButtonHref }}
https://github.com/clerk/javascript/pull/9143/changes#diff-86594360b69759a34b8d2f7002346fa494874b84176149707673895b80199a50
https://github.com/clerk/javascript/pull/9143/changes#diff-86594360b69759a34b8d2f7002346fa494874b84176149707673895b80199a50
Please reload this pagehttps://github.com/clerk/javascript/pull/9143/changes
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.