hyper-fetch
hyper-fetch copied to clipboard
[React] `refetchOnFocus` is ignoring `disabled`
Describe the bug
useFetch with refetchOnFocus is ignoring disable prop.
To Reproduce Steps to reproduce the behavior:
- make a
useFetchwithdisabled: trueandrefetchOnFocus: 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
Thank you for reporting, I will handle this 👌