Skip to content
Discussion options

You must be logged in to vote

In one sense, there isn't a solution here. If that reducer isn't loaded when the fulfilled action is dispatched, then no, it wasn't around to handle the action (aka the "tree falling in a forest and no one's around to hear it" scenario).

If there's some other section of the reducer logic that is also listening for this action and does handle it, you could in theory write logic to grab some value from slice B and dispatch another action when slice A gets loaded. But it's also likely that this was the only slice of state that cared about that action, in which case nothing else saved any values from that action at all.

A rarely used alternative might be to use a special middleware that watch…

Replies: 2 comments 11 replies

Comment options

You must be logged in to vote
3 replies
@TimeDropsSB
Comment options

@markerikson
Comment options

@TimeDropsSB
Comment options

Answer selected by TimeDropsSB
Comment options

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

@bam
Comment options

@TimeDropsSB
Comment options

@bam
Comment options

@TimeDropsSB
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
4 participants