Skip to content

State changes when no reducer perform changes #2933

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

You must be logged in to vote

Can you clarify what those two examples are trying to show? They appear to be very different setups.

For the record, the core Redux store always runs all subscriber callbacks (ie calls to store.subscribe(callback)) after every action, regardless of whether the state was updated or not. RTK just ends up using createStore internally, so there is no difference in behavior between "vanilla Redux" and "RTK" here.

Replies: 1 comment 10 replies

Comment options

You must be logged in to vote
10 replies
@markerikson
Comment options

@BrainCrumbz
Comment options

@BrainCrumbz
Comment options

@markerikson
Comment options

@BrainCrumbz
Comment options

Answer selected by BrainCrumbz
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