Describe the bug
useFetch with refetchOnFocus is ignoring disable prop.
To Reproduce
Steps to reproduce the behavior:
- make a
useFetch with disabled: true and refetchOnFocus: 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
Describe the bug
useFetchwithrefetchOnFocusis ignoringdisableprop.To Reproduce
Steps to reproduce the behavior:
useFetchwithdisabled: trueandrefetchOnFocus: trueExpected behavior
It doesn't make a request, since it is disabled
Desktop (please complete the following information):
Additional context
Moreover it starts refreshing cycle if
refresh: trueignoring disabled state completely