Comments (3)
Is vuex-router-sync going to support vue3? I believe this issue is related to that, but I might be wrong.
from vuex-router-sync.
Is vuex-router-sync going to support vue3? I believe this issue is related to that, but I might be wrong.
FYI: I'm having this issue on vue2
edit: Seem to trigger (or can trigger) during 'time travel', so for me I can ignore the issue, but I rather would not see that warning ofc
from vuex-router-sync.
@Unkrass what you can do...
When you invoke the vuex-persistedstate
plugin...
e.g:
import Vue from "vue";
import Vuex from "vuex";
import createPersistedState from "vuex-persistedstate";
Vue.use(Vuex);
export default new Vuex.Store({
plugins: [
createPersistedState({
// This omits the plugins/vue-router-sync state.route from persisting
paths: ["foo", "bar", "zee"],
}),
],
state: {
foo: {},
bar: {},
zee: {}
}
});
The above is a simple contrived example... But what is important is passing to the createPersistedState
options the paths
and explicitly only setting the paths that are in the vuex
state. When you do this the vuex-persistedstate
plugin won't persist the automatically added state.route
that vuex-router-sync
injects.
This will make the warning not appear.
Hope this helps.
from vuex-router-sync.
Related Issues (20)
- 6.0.0-rc.1 package.json has a valid "main" entry HOT 3
- missing matched and redirectedFrom properties
- Unable to install with vue-router@^4.0.12 HOT 2
- TypeError: o is null HOT 2
- Store 代码拆分 HOT 1
- AMD/UMD Version HOT 1
- Documentation on how it syncs within existing lifecycle HOT 2
- Router path get null HOT 7
- Getters that only update when values have changed HOT 5
- route state not compatible with typing definition from vue router HOT 5
- Cannot synchronize changes from Vue component to Vuex HOT 1
- NPM package error HOT 1
- Automatic dispatch upon route change HOT 1
- Access to router module from other modules HOT 3
- Potential XSS when using with SSR HOT 17
- Cannot read property 'name' of undefined HOT 4
- [recommendation] should add "sideEffects": false in package.json
- 通过提交'route/ROUTE_CHANGED'的mutation来实现路由跳转是否合理? HOT 2
- This lib ignored the changes in router guard HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vuex-router-sync.