-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Closed
Labels
Description
Describe the bug
If there's a query which throws, usually const { status, data, error } = useQuery(...) one would just use error and render the error in jsx
However, if that throw is the result of clicking refetch in the devtools, the entire app crashes (see screenshot)
To Reproduce
Steps to reproduce the behavior:
https://codesandbox.io/s/strange-drake-9dyow?resolutionWidth=320&resolutionHeight=675&file=/pages/index.js
- Open the repro demo in browser
- wait for a auto refetch to fail (it fails 50% of the time)
- See the page change
- hit refetch in devtools until it fails
- app crashes
Expected behavior
App does not explode :P
Screenshots
when rejected naturally:

When 'refetched' by devtools:

Desktop (please complete the following information):
- OS: macOS
- Browser: chrome
- Version: canary