Skip to content

readQuery and readFragment do (can) not return optimistic data #2222

Closed
@jer-sen

Description

@jer-sen

After processing an optimistic response and before receiving the response from the server, if readQuery or readFragment is called from ApolloClient, it returns data ignoring the optimistic update.
I think the optimistic data should be returned instead. It would be coherent with the data available through observable queries.
At least, there should be an option ("optimistic:: true" ?) to let the user decide which version of the data return.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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