Problem: You will get Uncaught Error: Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops. Solution: Downgrade to zustand@4 and replace zustand/shallow with zustand/react/shallow
For other dependencies, it works as well
I use pnpm workspace, and here are my dependencies on my main project.
Describe the feature
Problem: You will get
Uncaught Error: Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.
Solution: Downgrade to zustand@4 and replacezustand/shallow
withzustand/react/shallow
For other dependencies, it works as well I use pnpm workspace, and here are my dependencies on my main project.
Additional information