Skip to content

Prevent Android first-layer readiness race - #72

Open
0x7f wants to merge 2 commits into
mainfrom
fix-android-first-layer-ready-race
Open

Prevent Android first-layer readiness race#72
0x7f wants to merge 2 commits into
mainfrom
fix-android-first-layer-ready-race

Conversation

@0x7f

@0x7f 0x7f commented Aug 17, 2026

Copy link
Copy Markdown
Member

Cached first-layer JS can postMessage before the WebView inject wraps it, so FIRST_LAYER_READY never reaches RN and remounts hang on the spinner. Wrap parent.postMessage, re-inject at document end, cache-bust per mount, and fall back to ready after load-end.

0x7f added 2 commits August 17, 2026 09:42
Cached first-layer JS can postMessage before the WebView inject wraps
it, so FIRST_LAYER_READY never reaches RN and remounts hang on the
spinner. Wrap parent.postMessage, re-inject at document end, cache-bust
per mount, and fall back to ready after load-end.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant