Skip to content

Change Log

Please visit the SWR release page for all history releases.

v2.5.0

Published on Mon Aug 03 2026.

Features

RSC cache preloading

Preload data in React Server Components and pass it to client hooks through SWRConfig. This avoids a duplicate initial browser request and hydrates the result into the SWR cache. The new cacheData option is experimental.

https://github.com/vercel/swr/pull/4275

New unload() API

Use unload() to clear the entire SWR cache and discard in-flight requests and mutations. Mounted hooks revalidate by default, or you can pass { revalidate: false } to keep the cache empty until the next revalidation.

https://github.com/vercel/swr/pull/4298

Fixes

New Contributors

Full Changelog: https://github.com/vercel/swr/compare/v2.4.2...v2.5.0

v2.5.0-beta.1

Published on Wed Jul 15 2026.

Feature

Full Changelog: https://github.com/vercel/swr/compare/v2.5.0-beta.0...v2.5.0-beta.1

v2.5.0-beta.0

Published on Tue Jul 07 2026.

Features

Patches

New Contributors

Full Changelog: https://github.com/vercel/swr/compare/v2.4.2...v2.5.0-beta.0

v2.4.2

Published on Mon Jun 22 2026.

Patches

Chores

New Contributors

Full Changelog: https://github.com/vercel/swr/compare/v2.4.1...v2.4.2

v2.4.1

Published on Mon Jun 22 2026.

Patches

New Contributors

Full Changelog: https://github.com/vercel/swr/compare/v2.4.0...v2.4.1