Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upUsing prefetch or enabled in SSR leads to endless loading #940
Comments
Related #1001 |
This is not necessarily related to #1001. 0.5.0 also freezes in SSR if the initial value of |
Also happening on Versions Have you found any workaround? |
Any updates on this? |
@seanaye It should be solved in version v4.0.0-alpha.12, which was released 2 days ago. |
Describe the bug
Using the
prefetch
orenabled
options inuseQuery
on the server causes endless loading.To Reproduce
Steps to reproduce the behavior:
prefetch
orenabled
Expected behavior
Disabling the request before the client waits for the necessary data.
Versions
vue: 2.6.11
vue-apollo: 3.0.3
apollo-client: 2.6.8
@vue/composition-api: 0.5.0
@vue/apollo-composable: 4.0.0-alpha.7
Additional context
The problem is related to not resolved promise in
onServerPrefetch
.