-
-
Notifications
You must be signed in to change notification settings - Fork 31
Open
Description
Describe the bug
useFetch
with refetchOnFocus
is ignoring disable
prop.
To Reproduce
Steps to reproduce the behavior:
- make a
useFetch
withdisabled: true
andrefetchOnFocus: true
- 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
Labels
No labels