You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to preface this by saying I know I'm an idiot and that I'm sure zustand was not intended to be used the way I'm using it. I am having a hell of a time mocking this file though due to my using subscribeWithSelector. I have mocked similarly setup stores without the subscribeWithSelector just fine, but this one keeps giving me
Error: Uncaught [TypeError: __vite_ssr_import_3__.usePlotStore.subscribe is not a function]
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I want to preface this by saying I know I'm an idiot and that I'm sure zustand was not intended to be used the way I'm using it. I am having a hell of a time mocking this file though due to my using subscribeWithSelector. I have mocked similarly setup stores without the subscribeWithSelector just fine, but this one keeps giving me
Error: Uncaught [TypeError: __vite_ssr_import_3__.usePlotStore.subscribe is not a function]
Here's my test file thus far:
and my embarrassingly stupid store
Beta Was this translation helpful? Give feedback.
All reactions