Skip to content

Update Slice State After Manual Cache Update #4403

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

You must be logged in to vote

there is no action dispatched that would be useful to you, no - the only action actually dispatched contains JSON patches of your changes that are applied in the reducer itself.
https://github.com/reduxjs/redux-toolkit/blob/master/packages/toolkit/src/query/core/buildSlice.ts#L130
https://github.com/reduxjs/redux-toolkit/blob/master/packages/toolkit/src/query/core/buildThunks.ts#L251

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
4 replies
@phryneas
Comment options

@User6531
Comment options

@phryneas
Comment options

@User6531
Comment options

Comment options

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

Answer selected by User6531
@User6531
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
3 participants