Skip to content

Query never goes into Error state if there's no internet #2179

@Shaddix

Description

@Shaddix

Describe the bug
Query never goes into Error state if user is offline. Query is forever in Fetching state, which prevents me from showing an error.

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'https://tn8bn.csb.app'
  2. Open Chrome Dev Tools, disable cache, set Throttle to Offline (or disable All Network Adapters on your PC. Disabling cache is needed anyway)
  3. Click on refetch
  4. Query is forever in Fetching state.

Expected behavior
I'd expect the query to fail (go to Error state), so I'd be able to show error to the user.
Btw, if retry is set to false, then query goes into Error state as expected.

Screenshots
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateThis issue or pull request already existsv4

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions