Skip to content

How to log action created by createAsyncThunk? #3807

Answered by EskiMojo14
zeroarst asked this question in Q&A
Discussion options

You must be logged in to vote

okay, you've edited - the behaviour you're seeing is correct.'api/fetchSomeData' is a prefix, createAsyncThunk creates pending/fulfilled/rejected actions based on it.
also, your middleware has a bug - remember to return next(action), otherwise you break other middlewares' ability to return values.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@zeroarst
Comment options

@EskiMojo14
Comment options

Answer selected by EskiMojo14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants