Skip to content

GraphQLWsLink does not work together with fetchMore #12479

Open
@sebakerckhof

Description

@sebakerckhof

Issue Description

I'm using the GraphQLWsLink to query data over a websocket.

This works fine, but it does not seem to work in combination with fetchMore.

Image

The image above shows 2 calls. The original call (via useQuery), which returns the data succesfully.

Then we see a second call being launched via fetchMore. The operation is requested and the server returns the results, but the data returned from useQuery is not updated. The results are also not added to the apollo client cache.

This does work with a regular HttpLink.

Link to Reproduction

Not possible due to dependency on a public graphql-ws server...

Reproduction Steps

No response

@apollo/client version

3.13.5

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