T
TanStack4y ago
harsh-harlequin

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
sensitive-blue4y 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

Did you find this page helpful?