Zustand giving me strange error #1837
Answered
by
elamandeep
elamandeep
asked this question in
Bug report
-
stuck at this error. I'm confident that i haven't missed anything but the it's still giving me error [DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`
Uncaught TypeError: getSnapshot is not a function
getSnapshotWithSelector with-selector.development.js:134
React 3
useSyncExternalStoreWithSelector2 with-selector.development.js:145
useStore index.mjs:8
useBoundStore index.mjs:25
Dashboard Dashboard.jsx:9
React 11
workLoop scheduler.development.js:266
flushWork scheduler.development.js:239
performWorkUntilDeadline scheduler.development.js:533
js scheduler.development.js:571
js scheduler.development.js:633
__require chunk-4EOJPDL2.js:8
js index.js:6
__require chunk-4EOJPDL2.js:8
React 2
__require chunk-4EOJPDL2.js:8
js React
__require chunk-4EOJPDL2.js:8
js React
__require chunk-4EOJPDL2.js:8
<anonymous> react-dom_client.js:38 |
Beta Was this translation helpful? Give feedback.
Answered by
elamandeep
Jun 5, 2023
Replies: 1 comment 4 replies
-
@elamandeep would you mind showing us how you are importing zustand? |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks giving ur precious time to problem I forgot to import persist function. I'm very sorry for reporting that it's bug. I have reported it that way because earlier people to faced same kind of error. That's why i thought i might be version issue