Skip to content

Conversation

NathanWalker
Copy link
Contributor

@NathanWalker NathanWalker commented Nov 19, 2024

PR Checklist

What is the current behavior?

If defining @State at the root level or using @Environment injection on views derived from that state, the main window body can be reevaluated causing the runtime reinit or reboot in some cases.

What is the new behavior?

The main window when using a SwiftUI app lifecycle based NativeScript app will no longer reinit/reboot the runtime as it's not needed in these cases.

@NathanWalker NathanWalker merged commit d6922b9 into main Nov 19, 2024
0 of 3 checks passed
@NathanWalker NathanWalker deleted the fix/visionos-multi-scene branch November 19, 2024 03:42
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