SwiftUI refresh view multiple times #2843
Unanswered
artemkrachulov
asked this question in
Q&A
Replies: 1 comment 3 replies
-
I think something is wrong about your comparison. You implemented equatable on your view, which TCA would not use and does not buy you anything, I don't think. For the purposes of reducing unnecessary view renders, what matters is equatability or a remove duplications function on state or view state. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone. After reading the performance article I decided to add some flavors of optimization to our application.
I've added
ViewStore
with an observing feature. Example:As a result, I have multiple view refresh issues. 3-4 times
Then I went to the
Equitable
wayAs a result, I have a refreshing view only when the required option has changed.
What, I'm doing wrong here? As I understood observed features should do the same as equal.
The TCA version I use, 0.57.0
Beta Was this translation helpful? Give feedback.
All reactions