I'm using react-query v3.13 to fetch data from API.
What I want to do is to fetch API regularly from a certain point (for example, when clicking the start button), not from the time of calling useQuery.
I tried the following ways.
- set
enabledproperty tofalseto disable automatic querying but it also disables re-fetching.
I could not find a way to re-enable/set theenabledproperty totrue. And I had to usesetTimeoutby myself to re-fetch regularly. - keep
enabledproperty astruebut I could not find a way to disable the initial fetching.
Is there any proper way to do this?