Replies: 3 comments
-
You have to export your
|
Beta Was this translation helpful? Give feedback.
0 replies
-
did not wotk |
Beta Was this translation helpful? Give feedback.
0 replies
-
@jpikora worked for me :) thanks... Note that you can do |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
vue-router includes a Navigation Guard feature which, among other things, is useful for delaying the display of the next page until some API data is retrieved. This is meant to make the page function more like server-side rendered site until API data is fetched and avoids having to create "loading" views for every page.
Reference: https://router.vuejs.org/guide/advanced/navigation-guards.html#in-component-guards
So in particular "beforeRouteEnter()" would be useful for apollo except it doesn't have access to the component context
this
since it is evaluated before loading the rest of the component. Can anyone suggest a way to take advantage of this feature while integrating well with vue-apollo?Beta Was this translation helpful? Give feedback.
All reactions