You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have two thunks A and B.
From A I'm dispatching B.
If B doesn't use getState is there any fundamental difference or downside of passing dispatch from A to B (B(dispatch)), rather than passing B to dispatch of A (dispatch(B))?
Just wondering, as it makes FP composition easier:
This discussion was converted from issue #309 on February 02, 2021 14:44.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Question
I couldn't find satisfying answer anywhere but:
I have two thunks A and B.
From A I'm dispatching B.
If B doesn't use
getState
is there any fundamental difference or downside of passingdispatch
from A to B (B(dispatch)
), rather than passing B todispatch
of A (dispatch(B)
)?Just wondering, as it makes FP composition easier:
vs
Beta Was this translation helpful? Give feedback.
All reactions