-
|
Should reducer return a new state in every situation? Example: and I have a result object ReducerImpl : Reducer<State, Result> { |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
You have the current state in the |
Beta Was this translation helpful? Give feedback.
-
|
Yeah… For some reason (it was probably late) I was dumb and something didn’t work. Anyway, thanks for help!
… On 6 May 2021, at 2:39 PM, Arkadii Ivanov ***@***.***> wrote:
You have the current state in the Reducer as receiver parameter, so you can use copy (to create a shallow copy) or this.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Beta Was this translation helpful? Give feedback.
You have the current state in the
Reduceras receiver parameter, so you can usecopy(to create a shallow copy) orthis.