Skip to content
This repository was archived by the owner on Jan 2, 2021. It is now read-only.
This repository was archived by the owner on Jan 2, 2021. It is now read-only.

Query data under the data explorer section is showing up as null #55

@andrewli-ca

Description

@andrewli-ca

When using query data to seed future queries, the approach from section 23 of react-query-essentials is to iterate through each item and call setQueryData on each one of them. This works as intended but opening up the dev tools to inspect the queries, the data for each query is showing up as null. This looks like a bug because the data is being read from the cache and is being rendered on to the screen.

image

It looks to me that the changes made after 2.5.6 of react-query are not playing nicely with react-query-devtools. Version 2.5.6 of react-query works with react-query-devtools with no issues.

image

CodeSandbox (using latest version of react-query and react-query-devtools)
https://i58su.csb.app
https://codesandbox.io/s/23-using-query-data-to-seed-future-queries-i58su?file=/src/index.js

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