Skip to content

WithViewStore Causes Subview to Re-render on Parent State Update #3706

Closed Answered by stephencelis
WHuangz88 asked this question in Q&A
Discussion options

You must be logged in to vote

@WHuangz88 ViewStore and WithViewStore were deprecated 2 years ago with the introduction of back-ported observation tools, and will be removed in TCA 2.0. Can you use @ObservableState, instead? This should automatically minimize the number of re-renders based on what state is accessed.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@WHuangz88
Comment options

@mbrandonw
Comment options

Answer selected by WHuangz88
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants