Open Glandos opened 4 years ago
I does also not work between getters, doesn't it?
As far as I remember yes. However, since it was for a new project, I then switched to another helper library (vuex-class-component)
Yeah, apparently you can't access anything from the class inside getters or other functions (except the "state"). Okay, I'll checkout your option. :+1:
I'll also look into Vue3 and Vuex4. Let's see.
It would so great to have a solution for this.
In fact, I encountered the exact same issue with vuex-class-component, except that I can use a workaround (with proxies).
See my comment on this: it seems that Vuex itself renders this usage quite complicated.
Any progress about this?
Hi, I have the following pattern:
However, when accessing to
newSequence
, it seems thatthis.id
isundefined
. This is not consistent with the behavior with getters nor actions (where it's possible to use context).Am I missing something?