swr
swr copied to clipboard
Get duration of remaining refresh interval?
I have a cached backend API, and I'd like to have a 'countdown clock' timer on the frontend. refreshInterval covers being able to actually perform the update, but not having a 'remaining milliseconds' number that I can use for UI updating.