Skip to content

dispatch a createAsyncThunk when a reducer si called #1765

Answered by markerikson
Piero87 asked this question in Q&A
Discussion options

You must be logged in to vote

No, you can never make any kind of additional call like that in a reducer.

However, you could try using the new experimental "action listener middleware" we're looking to add to RTK, currently available as a standalone package:

#1648

Replies: 2 comments 17 replies

Comment options

You must be logged in to vote
8 replies
@Piero87
Comment options

@markerikson
Comment options

@Piero87
Comment options

@markerikson
Comment options

@Piero87
Comment options

Answer selected by Piero87
Comment options

You must be logged in to vote
9 replies
@Piero87
Comment options

@Piero87
Comment options

@markerikson
Comment options

@markerikson
Comment options

@Piero87
Comment options

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