Skip to content
loading...

re: How SWR works behind the scenes VIEW POST

TOP OF THREAD FULL DISCUSSION
re: A simple fn that aims to do a similar stale-while-revalidate thing: // takes a request and a response mapping function. map must be able to accep...
 

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.

code of conduct - report abuse