We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FETCH_LIST_DATA
In file src/entry-client.js, we have beforeRouteUpdate mixin:
src/entry-client.js
beforeRouteUpdate
Vue.mixin({ beforeRouteUpdate (to, from, next) { const { asyncData } = this.$options if (asyncData) { asyncData({ store: this.$store, route: to }).then(next).catch(next) } else { next() } } })
And in src/views/ItemList.vue, we have been watching for vue-router's page:
src/views/ItemList.vue
watch: { page (to, from) { this.loadItems(to, from) } },
And I thought these two code fragments are doing the same thing, is it just for demonstrating or other purposes? Thanks!
The text was updated successfully, but these errors were encountered:
No branches or pull requests
In file
src/entry-client.js
, we havebeforeRouteUpdate
mixin:And in
src/views/ItemList.vue
, we have been watching for vue-router's page:And I thought these two code fragments are doing the same thing, is it just for demonstrating or other purposes? Thanks!
The text was updated successfully, but these errors were encountered: