Stop Using setTimeout for Polling — Here's What to Do Instead
📰 Dev.to · Mack
Raise your hand if you've written this: function pollStatus() { fetch('/api/status') ...
Raise your hand if you've written this: function pollStatus() { fetch('/api/status') ...