Adding Vuex to Vue

  • You’re passing nearly your entire data object to child components.
  • You’re avoiding using components and building your page as one big Vue instance.
  • You’re finding you’re implementing a lot of client side business logic in watch statements.
  • You’re considering (or already have made) a global event bus.
https://jsfiddle.net/khamer/yypta63g/
https://jsfiddle.net/khamer/yypta63g/7/
https://jsfiddle.net/khamer/yypta63g/9/

--

--

The Principal Engineer at Imarc, Erratic Author on Medium. Writing about web development and being a better web developer.

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Kevin Hamer

Kevin Hamer

45 Followers

The Principal Engineer at Imarc, Erratic Author on Medium. Writing about web development and being a better web developer.