Skip to content

createListenerMiddleware initial load error without a dispatch function in React #4445

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

You must be logged in to vote

Yeah, the middleware will use your predicate function to do comparisons to decide if it should run the effect function... but it only does that check after each action is dispatched.

Replies: 1 comment 9 replies

Comment options

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

@markerikson
Comment options

@gautamsarawagi
Comment options

@markerikson
Comment options

Answer selected by gautamsarawagi
@gautamsarawagi
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