-
-
Notifications
You must be signed in to change notification settings - Fork 522
Closed
Description
Don't know if this is related to apollo or nuxt
but it seems to be an issue on ssr
what i'm doing on my code is this
apollo: {
result: {
query: Receipt,
prefetch({ params }) {
return {
id: params.id
};
},
variables() {
return {
id: this.$route.params.id
};
}
}
}I have that code setup on nuxt and prefetch the route parameters from it
then when i do this
this.$router.push({
name: "receipts-id",
params: { id: data.result.receipt.id }
});it throws an error showing the $apollo.loading is not defined
It works okay when refreshing it
pushing routes is the problem i think
Metadata
Metadata
Assignees
Labels
No labels
