@ObservableState change doesn't update View #3122
-
Hello there 👋 Currently, I'm using TCA version of 1.10.4, and Xcode minimum deployments of 16.0. I have some problem when updates view with ObservableState. 1️⃣ Changes in ObservableState do not trigger view updates intermittently. This issue does not occur every time, but intermittently fails to trigger view updates. Wrapping a subview with another WithPerceptionTracking inside WithPerceptionTracking resolves the issue. I want to understand why I need to wrap it with WithPerceptionTracking twice. 2️⃣ WithPerceptionTracking warning occurs even when the view is wrapped with When the view appears, 12 purple warning are shown. ( I wonder if I used WithPerceptionTracking incorrectly. FYI, that UserInfoEditView is pushed by NavigationLink in Vanilla SwiftUI. Could that potentially have an impact? Thank you in advance for your help!
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hey @marisol-develop, I think this might answer your question. |
Beta Was this translation helpful? Give feedback.
Hey @marisol-develop, I think this might answer your question.
ScrollViewReader
is an example of one of the views that requires this:https://pointfreeco.github.io/swift-composable-architecture/main/documentation/composablearchitecture/observationbackport#Lazy-view-closures