Replies: 1 comment 5 replies
-
@cbst99 I'm not sure but does not make sense to me I'd expect |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Let me explain more clearly with an example. I have this:
Dashboards
is a class with its own methods, for instance this one:The issue is that when I call
useDashboards()
within a component, Zustand returns anObject
, not aDashboards
. This object has all the variables that my dashboards have, but of course none of the methods and this makes a lot of things unusable. This happens despite the fact thatuseDashboards.getInitialState()
correctly returns aDashboards
.PS: I should also add that my mutation are performed using Immer from outside the store. For example:
Beta Was this translation helpful? Give feedback.
All reactions