Hi need help with an error i got with Zustand/React/Vite -> useEffect must not return anything besides a function #2644
-
Hey guys, I got an error |
Beta Was this translation helpful? Give feedback.
Answered by
dbritto-dev
Jul 14, 2024
Replies: 1 comment 3 replies
-
@eitai would you mind sharing us the whole component with the useEffect statement included? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@eitai in that case the error is not related to zustand but the code itself. As far I see in the compiled version you are returning an object in your
useEffect
statement which is wrong.