We are excited to announce the release of SWR 2.0! The new version comes with a lot of improvements:
And more!
Read our blog post and migration guide: https://swr.vercel.app/blog/swr-v2
isLoading state and refactor the core by @shuding in https://github.com/vercel/swr/pull/1928keepPreviousData option by @shuding in https://github.com/vercel/swr/pull/1929throwOnError option by @shuding in https://github.com/vercel/swr/pull/2182Full Changelog: https://github.com/vercel/swr/compare/1.2.2...2.0.0
Fetched April 18, 2026