-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Closed
Labels
bugSomething isn't workingSomething isn't workinggood first issueGood for newcomersGood for newcomerssuspense
Description
Describe the bug
A query remains indefinitely in "fetching" status when the component where it is originated crashes and the error is catched by an error boundary.
To Reproduce
I've created a codesandbox to show the bug, you can see it here: https://codesandbox.io/s/loving-grothendieck-5ovgm
Steps to reproduce the behavior:
- Go to the codesanbox;
- Click on "Show Posts"
- Close the error overlay, you can see that the global fetching indicator shows that 1 query is still running, and if you open the devtools you can see the query in "fetching" status
- You could then go back to the home and then click to the "todos" list, it works as expected but the global fetching indicator still remains to 1 after the fetch is completed
Expected behavior
The query originated in the crashed component should not hang and be removed from the query cache.
Desktop (please complete the following information):
- OS: Windows
- Browser: Chrome
- Version: 86
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workinggood first issueGood for newcomersGood for newcomerssuspense