T
TanStack2y ago
afraid-scarlet

Options to load query after refetchInterval but not on initial page load

Currently using "refetchInterval: 60000" to refetch the API every minute but if I use "enabled: false" it won't work anymore. I basically only want the API call to be done either after a minute or if I do a manual refetch().
1 Reply
solid-orange
solid-orange2y ago
why do you set enabled: false ?

Did you find this page helpful?