Skip to content

[React] refetchOnFocus is ignoring disabled #102

@Foprta

Description

@Foprta

Describe the bug
useFetch with refetchOnFocus is ignoring disable prop.

To Reproduce
Steps to reproduce the behavior:

  1. make a useFetch with disabled: true and refetchOnFocus: true
  2. refocus tab

Expected behavior
It doesn't make a request, since it is disabled

Desktop (please complete the following information):

  • OS: macOS
  • Browser: Brave
  • Version: [Version 1.76.74 Chromium: 134.0.6998.89 (Official Build) (arm64)]

Additional context
Moreover it starts refreshing cycle if refresh: true ignoring disabled state completely

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions