I first learned about SWR thanks to a video tutorial by Leigh Halliday: "React Data Fetching with Hooks using SWR". If you're not familiar with SWR...
For further actions, you may consider blocking this person and/or reporting abuse
A simple fn that aims to do a similar stale-while-revalidate thing:
This doesn't handle visibility change refresh, though. I typed it up on a phone so please be forgiving...
Note that if you're writing a real-time API or similar; it's probably best to use an EventSource or WebSocket. EventSource is generally less work for the same output; though.
Great article, Julian!
Thank you! Your videos are the best!
You post most important. I like you post.
Thanks you.