Skip to content
Discussion options

You must be logged in to vote

@tkoehlerlg Actually, this appears to be an issue of observing too much state. Your app is using the deprecated version of WithViewStore that doesn't have an observe parameter at each layer:

WithViewStore(store) { viewStore in

This observes too much state at each layer, which can expose bugs in SwiftUI that become more common in applications that have a lot of state to observe, in this case a vanilla SwiftUI bug with navigation. TCA comes with tools that you can use to work around these bugs, though. In this case you can use the observe parameter to chip away at just the state a local view cares about. For more info, see our article on view store performance:

https://pointfreeco.github.io…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by tkoehlerlg
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
apple bug Something isn't working due to a bug on Apple's platforms.
2 participants
Converted from issue

This discussion was converted from issue #1598 on October 31, 2022 17:48.