4.4.1 version throws an error "Cannot read properties of null (reading 'useRef')" #1983
Replies: 7 comments 11 replies
-
Is it specific to 4.4.1? |
Beta Was this translation helpful? Give feedback.
-
Is there a fix for this issue? I experience it with zustand 4.4.1 and react 18.0.2 |
Beta Was this translation helpful? Give feedback.
-
I continue to encounter this error in React 18.2.0 and Zustand 4.4.7. Is there a solution available ? |
Beta Was this translation helpful? Give feedback.
-
I encountered this error while working outside a React component, if this is the case for someone reading this, try with this section of the official docs as accessing store the normal way outside a component will render this error. if this is not your case, hope someone can drop another solution for ya <3 |
Beta Was this translation helpful? Give feedback.
-
I get this:
|
Beta Was this translation helpful? Give feedback.
-
I'm experiencing this in a react-native app inside an npm workspace. |
Beta Was this translation helpful? Give feedback.
-
I need someone to help investigation this.
|
Beta Was this translation helpful? Give feedback.
-
react: 18.2.18
react-dom: 18.2.7
zustand: 4.4.1
Beta Was this translation helpful? Give feedback.
All reactions