Skip to content

data set to {} between re-fetches #117

@FezVrasta

Description

@FezVrasta

I created this small example to show my issue:

https://codesandbox.io/s/ovw0m6yl4z

Basically, every time I re-render the component and useQuery fetches new data, the data object is set to {} while loading is true.

How can I preserve the previously fetched data while I load new data?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions