Skip to content

Using prefetch or enabled in SSR leads to endless loading #940

Open
@negezor

Description

@negezor

Describe the bug
Using the prefetch or enabled options in useQuery on the server causes endless loading.

To Reproduce
Steps to reproduce the behavior:

  1. Use SSR
  2. Add option prefetch or enabled
  3. Watch endless loading

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions