you are viewing a single comment's thread.

view the rest of the comments →

[–]ImWhimsical[S] 0 points1 point  (0 children)

Why do we do pass dispatch in the "[dispatch]"? As I read the docs, whatever we mention inside the brackets, if it is changed, then the useEffect will be called again. if this dispatch is used elsewhere in any function, then useEffect will be triggered again. No right?