Binding with @Bindable var store: Store #2783
Unanswered
BaochengHan-TomTom
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Why not move this logic to the reducer? var body: some ReducerOf<Self> {
// ...
case let .tabChanged(newTab):
let modifiedTab = newTab * 2
// Do something with `modifiedTab`
return .none
// ...
} |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi there,
According to the the migration guide for 1.7, the way how we use
binding
changed like herewhat about if my logic is like this before upgrade
how to adapt to the new API then?
Apparently it doesn't work like following as the parameter of
sending
needs to be aCaseKeyPath
Beta Was this translation helpful? Give feedback.
All reactions