vuex-class-component icon indicating copy to clipboard operation
vuex-class-component copied to clipboard

watchers and subscribers in nuxt

Open jankulma opened this issue 5 years ago • 0 comments

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?

jankulma avatar Jan 10 '20 18:01 jankulma