SWR (State While Revalidate) is a React hook used to fetch data from the server. It provides plenty of features for performance, correctness and stability. The SWR is built by the Next.JS team with high performance in mind. It has build caching system and deduplication systems.
Table of contents
Why You Should Use useSWR Instead of useState When Calling APIsWhat is SWR?How to use it?Features offered by SWRPrefetching Data2 Comments
Sort: