Replies: 2 comments 5 replies
-
Hey @fatbobman! WithViewStore(store.stateless) { … }
WithViewStore(store.scope(state: { _ in () })) { … } // Former API, now deprecated
WithViewStore(store, observe: { _ in () }) { … } // New API |
Beta Was this translation helpful? Give feedback.
-
There's definitely a lot more we can be doing to make some of the default views in TCA more performant, but I think a lot of hinges on being able to use As an example, here's something I just experimented with to see how each row of a It's also worth mentioning, and maybe @tgrapperon already did, that although the rows are recreated when data is add/removed, that is not the case when data only changes inside the row. This has always been the case in |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I use ForEachStore to split the desired Store for the subviews in the List .
All subviews in the List are refreshed after adding or modifying data to the dataset.
But instead of using ForEachStore , when using ForEach(viewState.list) , only the subviews that have changed will be refreshed.
how to avoid multiple refreshes of the view when using ForEachStore
Thanks
Beta Was this translation helpful? Give feedback.
All reactions