Replies: 1 comment 4 replies
-
@kkdima two questions:
|
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi everyone!
I got lost inside createAsyncThunk logic.
Actually, the logic is pretty simple. I just don't understand why I can't pass updated product quantity to this thunk function, from there pass result inside lifecycle actions and do the rest of the logic in the action.
The Error I receive:
Actions must be plain objects. Use custom middleware for async actions.
Here's my
createAsyncThunk
function:The function that gets called from another component with items:
My
checkouSlice
looks like this:Please point me in the right direction if you see any flows.
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions