Last 12 weeks · 0 commits
2 of 6 standards met
I use the following packages: "vue-router": "^4.0.0-0", "vuex": "^4.0.0-0", "vuex-persistedstate": "^4.0.0-beta.3", "vuex-router-sync": "^6.0.0-rc.1" When I reload a page - and I believe it only happens when the state i persisted - I get the warning message [vuex] state field "route" was overridden by a module with the same name at "route" In my opinion this shouldn't be happening, because I didn't define any modules in my store. changing the module name to e.g. "RouteModule" as written in the docs throws the same warning, except then with "RouteModule" instead of "route". Is there a way to fix this?
This change moves to call to outside of the mutation and passes the already-cloned route as the payload. It fixes some console errors that might occur when the vue-devtools extension tries to clone the mutation payload. In my case there were errors when it attempted to clone components within the array of the route.
Repository: vuejs/vuex-router-sync. Description: Effortlessly keep vue-router and vuex store in sync. Stars: 2498, Forks: 122. Primary language: JavaScript. Languages: JavaScript (57.4%), TypeScript (42.6%). License: MIT. Topics: vue, vue-router, vuex. Latest release: v5.0.0 (8y ago). Open PRs: 3, open issues: 8. Last activity: 4y ago. Community health: 37%. Top contributors: yyx990803, kiaking, pixelgrid, blake-newman, snaptopixel, cgarnier, JounQin, predhme, NeverBehave, ryutamaki and others.
JavaScript
+ vue-router@3.0.6 + vuex-router-sync@5.0.0