loading...

re: You Might Not Need Vuex with Vue 3 VIEW POST

TOP OF THREAD FULL DISCUSSION
re: Hey, Nice article! I've been investigating similar functionality recently, and wrapped up shared stores into a class-based format, that works in...
 

Nice work, looks amazing 👍

One idea: add an example on how to use it as a plugin...or publish a plugin also in the package

 

Thanks! Can you expand on that?

Just an example on the Readme on how to use it with the app instances use method. app.use(store)

There's no use per-se, you just create the models and use them where you need them.

If you want a "global" style example, either import as needed or use inject exactly as you have (example code in the README):

github.com/davestewart/vue-class-s...

Code of Conduct Report abuse