Repository navigation
Conversation
Fails on main with isReady 0 / observedSeed 0; replaces the code comment.
mfazekas
force-pushed
the
claude/fix-414-ios-script-binding
branch
from
October 9, 2026 07:22
df8b0dd to
bcf05a1
Compare
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.
On the iOS new runtime the state machine was created before
dataBindwas resolved, so a script that cachescontext:viewModel()ininitkept the file's default instance instead of the one passed asdataBind. The state machine is now created after binding resolution, with the instance passed viacreateStateMachine(name, binding:). This covers both instance and by-name binding. Android is unaffected.script-databinding.harness.tsxcovers it with the reporter's fixture: onmainthe script reportsisReady0 /observedSeed0, with the fix 1 / 42. TheIssue414ScriptBindingreproducer page shows the same as a red/green square.Not covered:
DataBindMode.Autostill creates the state machine without an instance, and swappingdataBindon a mounted view still rebinds the existing state machine. The latter belongs with #403.Closes #414