Static GitHub Issues

[213] Integrating vue-router-sync

prev: Current page component is created again when switching layout
next: eslint not linting automatically

Question/Doubt :

Can you please suggest how to integrate vuex-router-sync within the project.

I was following vue-hacker-news example and in that we would import router from the router module and store from the store module and work with vuex-router-sync to sync the two. That was done in the main.js/app.js module which was then exported for client-entry and server-entry modules.

In the NUXT framework we don't have a main.js or app.js file. Please advise where and how to work with the vuex-router-sync library. Where should i import the router and store from and where should i sync the two.

Thanks.

<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This feature request is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c180">#c180</a>)</em></sub></div>