Repository navigation
fix(ios): create the root host without importing the UI stack - #23
Merged
Merged
Conversation
application.ios imported ContentView at module level, which pulled the whole UI stack in with the application module and broke its load order (workers must not load the UI at all). ContentView now registers a factory when it is imported, and the application creates its root host through it. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
application.ios.tsimportedContentViewat module level, which pulled the whole UI stack in with the application module and broke its load order (workers must not load the UI).ContentViewnow registers a factory (setContentViewFactory) when it is imported, and the application creates its root host throughcreateContentView().Risk:
createContentView()throws ifui/content-viewwas never imported. A root made only of aFrame(noPage, noContentViewimport anywhere) would hit it.Testing: in a bare vitest config, 9 of 12 application/frame/page spec files failed to load on
main(circular import) and 4 fail with this change. The remaining failures read native iOS globals (_getSystemAppearance) that this config does not mock. Not verified with the full nx test setup or on a device.🤖 Generated with Claude Code