Replies: 1 comment 1 reply
-
Both of these... don't do that. Your code here creates a thunk that is never dispatched or executed in this code. (That would be If it executed, the |
Beta Was this translation helpful? Give feedback.
-
Both of these... don't do that. Your code here creates a thunk that is never dispatched or executed in this code. (That would be If it executed, the |
Beta Was this translation helpful? Give feedback.
-
this code is based on the
injectReducer
documentation example. it works in that the thunk is triggered. but why since we are only attaching the fulfilled reducer function?:why does line
builder.addCase(theThunk.fulfilled);
wire up the thunk up to the store?why does line
store.dispatch({type: 'user/login'});
trigger the thunk?Beta Was this translation helpful? Give feedback.
All reactions