#Next.js + Zustand error

3 messages · Page 1 of 1 (latest)

somber echo
#

Hello, I am using Zustand for state management but seem to be encountering an issue. I get this error (pic rel) when calling a function from my store in one of my components. I'm not sure if it has to do specifically with HRM but I'd like to be able to continue testing with HRM enabled. The Zustand function makes an API call to my database for some product information, which my component is then trying to display. I call the function in a useEffect hook as well however I get this error implying that two things are trying to update at the same time - any idea what the fix could be? I can provide code snippets if needed in additional posts!

misty wyvernBOT
#

🔎 This post has been indexed in our web forum and will be seen by search engines so other users can find it outside Discord

🕵️ Your user profile is private by default and won't be visible to users outside Discord, if you want to be visible in the web forum you can add the "Public Profile" role in id:customize

✅ You can mark a message as the answer for your post with Right click -> Apps -> Mark Solution
(if you don't see the option, try refreshing Discord with Ctrl + R)

somber echo
#

Relevant code: