Skip to content

ReactQueryDevtoolsPanel component gets stuck in the "fetching" state #2745

@alexanderson1993

Description

@alexanderson1993

Describe the bug
For some reason, the ReactQueryDevtools component correctly shows the cache state, while the ReactQueryDevtoolsPanel component remains stuck in the 'fetching' state. The reproduction shows both dev tools running at the same time, but the same behavior happens when only ReactQueryDevtoolsPanel is running.

To Reproduce
Steps to reproduce the behavior:

  1. Open up this CodeSandbox https://codesandbox.io/s/dev-tools-panel-bug-fesez?file=/src/index.js
  2. Notice that the ReactQueryDevtoolsPanel on the right stays stuck in the "fetching" state while the ReactQueryDevtools component on the bottom updates correctly.
  3. Cause stale data to refetch (focus the window, toggle "Hide Users", whatever)
  4. The panel remains stuck in "fetching"

Expected behavior
The two ReactQueryDevtools components should be in sync.

Desktop (please complete the following information):

  • OS: macOS
  • Browser: Chrome/Safari
  • Version: 3.24.4

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