Skip to content

更新日志

请访问 SWR release page 查看所有的历史版本。

v2.6.0-beta.0

发布于 Tue Sep 22 2026.

Feature

Misc

New Contributors

Full Changelog: https://github.com/vercel/swr/compare/v2.5.1...v2.6.0-beta.0

v2.5.1

发布于 Wed Aug 12 2026.

Patches

Misc

New Contributors

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

v2.5.0

发布于 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

发布于 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

发布于 Tue Jul 07 2026.

Features

Patches

New Contributors

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