-
I know this is redux toolkit, but I maintain a lot of my state locally with Similarly, I was wondering if there was a way to manually use the underlying action creators from const Login = createAsyncAction("Login");
dispatch(Login.pending()); |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Yes and no - the action creators expect a lot of extra "meta information" that you manually barely can give them. Can I ask why you use |
Beta Was this translation helpful? Give feedback.
Yes and no - the action creators expect a lot of extra "meta information" that you manually barely can give them.
Can I ask why you use
createReducer
+createAction
and not justcreateSlice
? That would also make that generation of thepending
action etc. less work.