Stale While Revalidate
The server state is not 'owned' by the app, but borrowed from the server is the key paradigm shift
Github
vercel/swr
swr.vercel.app SWR is a React Hooks library for remote data fetching. The name " SWR" is derived from stale-while-revalidate, a cache invalidation strategy popularized by HTTP RFC 5861. SWR first returns the data from cache (stale), then sends the fetch request (revalidate), and finally comes with the up-to-date data again.
https://github.com/vercel/swr
2.0
Announcing SWR 2.0 - SWR
We are thrilled to announce the release of SWR 2.0, the popular React data-fetching library that enables components to fetch, cache, and mutate data and keeps the UI up-to-date with changes in that data over time. This new version comes packed with improvements and new features, such as new mutation APIs, improved optimistic UI capabilities, new DevTools, and better support for concurrent rendering.
https://swr.vercel.app/blog/swr-v2


Seonglae Cho