Replies: 1 comment
-
@Eunno-An We might need more info or a project to work with, but note that To detect changes made by all reducers in the body, you must wrap everything with var body: some ReducerOf<Self> {
+ CombineReducers {
BindingReducer()
- .onChange(of: \.introFeature) { oldValue, newValue in
- self._printChanges()
- }
Scope(state: \.profileHeaderFeature!, action: \.profileHeaderFeature) {
ProfileHeaderFeature()
}
...
+ }
+ .onChange(of: \.introFeature) { oldValue, newValue in
+ let _ = print("introFeature", oldValue, newValue)
+ }
} |
Beta Was this translation helpful? Give feedback.
-
Hello?
I have a question..
This is a parent Feature code.
It use child feature 'ProfileHeaderFeature'
But, the BindingReducer Never called.
Why it happened?
*profileHeaderFeature inside, there is BindingReducer.
*So i tested another child feature not have BindingReducer.
Beta Was this translation helpful? Give feedback.
All reactions