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:
// explicit callconstA=dispatch=>dispatch(B)
vs
// implicitly passing dispatchconstA=B
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: