mesqueeb / vuex-easy-firestore

Easy coupling of firestore and a vuex module. 2-way sync with 0 boilerplate!
https://mesqueeb.github.io/vuex-easy-firestore
MIT License
234 stars 28 forks source link

Reacting to changes in vue-router #358

Open alpkabac opened 4 years ago

alpkabac commented 4 years ago

I have an app that uses the same module in different routes. When I navigate to one from another and return back, I see the posts fetched by page two in page one since state is populated. I've found a solution by watching the route changes and resetting the state, but everytime I do that, it needs to fetch videos again, which means high read counts. Is simplier and more practical way to approach this?

louisameline commented 3 years ago

Just remember which items are related to which pages? It is pagination.