Difference in reducer behavior based on combine pullback order #535
Unanswered
ferologics
asked this question in
Q&A
Replies: 2 comments 1 reply
-
Here's my rule of thumb list:
To learn all about composing reducers check the PointFree episode on Higher-order reducers |
Beta Was this translation helpful? Give feedback.
1 reply
-
That's right! Reducers are run in order of combining, so mutations made by the first reducer are "seen" by the second. Effects are merged in the same order. |
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.
-
Hey, I'd like to ask if you could clarify this: what is the exact difference in TCA behavior when you combine & pullback a reducer before or after the "main" reducer?
vs
I assume the order of action execution depends on the provided reducer order? I.e. actions are first received by the first reducer, and then by any subsequently combined reducers? Is there some episode/case study explaining when combining in one order would be preferred over another? Or maybe it's easier to link me to the right place in the source code and this will become super obvious...
Beta Was this translation helpful? Give feedback.
All reactions