You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
in the example, there is only one AppState, any ScreeState change make AppState change, and make the top level widget recompute. may this cause performance issue?
The text was updated successfully, but these errors were encountered:
We actually want to trigger a UI layer recomposition (by changing the AppState value) each time there is a change in the ScreenState. On each recomposition, both JetpackCompose and SwiftUI are smart enough to update only the components whose data has changed.
The fact there is only one AppState is actually good for performance, as we require ONLY ONE observable, which is our StateFlow having the AppState as its value.
in the example, there is only one AppState, any ScreeState change make AppState change, and make the top level widget recompute. may this cause performance issue?
The text was updated successfully, but these errors were encountered: