Replies: 1 comment
-
In short: SWR doesn't have the ability now, but this is actually a good suggestion! There're two related options:
So it's great to have
Created #1562. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I would like a page that displays some feed, and refresh it automatically. However, it should not refresh while the user is active on the page, because it would be disturbing.
Is there a way to have a refresh interval, but only if the user is NOT doing anything e.g. scrolling the page, dragging mouse, typing something, etc.?
I could use the new Idle Detection API or listen for mouse and scroll events, but isn't there already a such feature in SWR?
Beta Was this translation helpful? Give feedback.
All reactions