Refetch once a day (at midnight)
Hello ! I'm trying to refetch data once a day, but I have an extra constraint that the data's cache should only refresh when the day changes.
Does react-query have an option I could use to handle this edge case?
1 Reply
sensitive-blue•4y ago
no, not that I know. Just spawn a timer separately in an effect and call refetch when the time is right I'd say