Skip to content

queries retrying even though option is set to false #652

@alexandernanberg

Description

@alexandernanberg

Describe the bug

While upgrading to v2 I noticed that some tests broke because useQuery does no longer use the config from the provider when you prefetch.

To Reproduce

Steps to reproduce the behavior:

  1. Go to https://codesandbox.io/s/sweet-resonance-zu0em?file=/src/App.js
  2. Check the console
  3. See multiple logs from react-query trying to retry even though the option is set to false

Expected behavior

Queries does not retry if option is set to false

Screenshots
N/A

Desktop (please complete the following information):
N/A

Smartphone (please complete the following information):
N/A

Additional context
N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions