Replies: 1 comment
-
Beta Was this translation helpful? Give feedback.
0 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.
-
Hello!
I'm in a process of migration the latest TCA version.
From the documentation, the usage example for
@ObservaleStateomits the ViewState and uses the State directly:converts to:
var body: some View { - WithViewStore(store, observe: ViewState.init) { viewStore in Form { - Text(viewStore.count.description) - Button("+") { viewStore.send(.incrementButtonTapped) } + Text(store.count.description) + Button("+") { store.send(.incrementButtonTapped) } } - } }What would be the best approach to keep both the State -> ViewState conversion and
@ObservableState?Beta Was this translation helpful? Give feedback.
All reactions