-
-
Notifications
You must be signed in to change notification settings - Fork 113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Runtime issues with dynamic properties in App
types
#222
Comments
Thanks, I'm looking into it. |
App
types
The state becomes corrupt within the |
The current signature I use is |
I'm still not sure if it's a bug in the Runtime library or Swift runtime metadata itself. I'm seeing weird behavior with What remains a mystery to me is why this doesn't happen to |
I actually have seen this issue with ObservedObject in Views while working on Toolbars, but I haven’t been able to replicate it on a smaller scale. |
Implements support for custom scenes by adding the new `MountedScene` type and fixes environment propagation from mounted parent to mounted child elements. This will unblock #136 and potentially #214. In the former scenes are always completely unmounted and remounted from scratch when root environment changes, which causes descendants to lose all `@State` values. I saw some environment propagation issues in the latter, but not sure if those were caused by the lack of correct scene updates, just wanted to tackle the usual suspects first. I've also improved reconciler-related doc comments to clarify some of the design desicions and naming. Resolves #222.
Here's a small example:
crashes with:
This occurs in Views as well.
Update:
@State
also has some issues. Here's a small example:The
count
starts with the number207884
. 🤨The text was updated successfully, but these errors were encountered: