vuex-class-component
vuex-class-component copied to clipboard
watchers and subscribers in nuxt
Hi,
In nuxt.js subscribers etc. will work only if you prepend related property with static, like static $subscribe = { ... }, otherwise createLocalSubscriber in proxy.ts will return on if( subscriptionMap === undefined ) return;. Not sure if this is related to nuxt only.
Another thing is that state is not available in subscribers and actionSubscribers, though normally Vuex passes it as second parameter. Any reason its not implemented here?