SWR Stale While Revalidate
Posted on July 14, 2020
TIL the details of this concept popularized by the HTTP RFC 5861.
The principle is:
- Get the data from cache (stale status)
- Send a request to revalidate the data
- Reconcile the view with the new data
There's a React component and also a Vue component for that behaviour.