Zustand (state management) is problematic in prod builds, use Redux Toolkit instead #417
stefroussos
started this conversation in
FYI
Replies: 1 comment 1 reply
-
@stefroussos do you have the error log when using zustand? I'm curious as to what it's complaining about, maybe ESM issue |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I kept getting errors with zustand's create function after running
pnpm build
(perhaps zustand needs a more advanced implementation to work properly with Plasmo). For people who need a global state management library, I recommend using redux-toolkit instead.Beta Was this translation helpful? Give feedback.
All reactions