createListenerMiddleware initial load error without a dispatch function in React #4445
Answered
by
markerikson
gautamsarawagi
asked this question in
Q&A
-
I am using a
and this the code of authSlice:
**But I am not able to leverage the redux middleware without the useEffect here: **
Would appreciate any help on this |
Beta Was this translation helpful? Give feedback.
Answered by
markerikson
Jun 4, 2024
Replies: 1 comment 9 replies
-
I don't think I understand what the actual question is.
|
Beta Was this translation helpful? Give feedback.
9 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yeah, the middleware will use your
predicate
function to do comparisons to decide if it should run theeffect
function... but it only does that check after each action is dispatched.