-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Return "invalid" stores from scoping (#2601)
* Return "invalid" stores from scoping Scoping can sometimes be invalid, _e.g._ SwiftUI may scope through an index of a collection that no longer exists while diffing in a `ForEach`, which can cause a crash when the child state is eagerly evaluated. This commit introduces the idea of an invalid store that will only crash if the store's state is interacted with, avoiding crashes that could happen deeper in SwiftUI. * wip
- Loading branch information
1 parent
efba133
commit ff27687
Showing
1 changed file
with
19 additions
and
4 deletions.
There are no files selected for viewing
This file contains 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