The migration guide lists various use cases for app plugins, among them the usage of vuex-router-sync:
You want to interfere with the Vuex store instance - An example would be to use vuex-router-sync package
So that’s what I want to do, but I must miss something, because I can’t figure out how. First I installed the package ‘vuex-router-sync’ from here.
https://github.com/vuejs/vuex-router-sync
Then I created an app plugin called ‘router.js’ like this
// import something here
import { sync } from 'vuex-router-sync'
// leave the export, even if you don't use it
export default ({ app, router, store, Vue }) => {
// setup sync
const unsync = sync(store, router)
}
and registered the plugin in quasar.conf.js. The default function is called, I checked this. However, I cannot access the route from the state property in the store so it doesn’t get extended. What am I missing?
Greetings,
John