Skip to content
Docs
Change Log

Change Log

Please visit the SWR release page for all history releases.

v2.0.3

Published on Sat Jan 28 2023.

Patches

Chores

New Contributors

Full Changelog: https://github.com/vercel/swr/compare/v2.0.2...v2.0.3

v2.0.2

Published on Thu Jan 26 2023.

Patches

Chores

Full Changelog: https://github.com/vercel/swr/compare/v2.0.1...v2.0.2

v2.0.1

Published on Wed Jan 18 2023.

In this patch release, we majorly improved typing support and SWR can infer the types based on the configuration.

  • When the suspense option is true, the returned data will exclude undefined and the isLoading will always be false.
  • When the fallbackData option is provided, the returned data will be the same type of fallbackData, and the isLoading will always be false.

Here's a demo for it:

https://user-images.githubusercontent.com/4800338/213288879-ffbeeeb5-aca5-4a65-8229-69fbf9b0bf70.mp4

What's Changed

New Contributors

Full Changelog: https://github.com/vercel/swr/compare/2.0.0...v2.0.1

2.0.0

Published on Fri Dec 09 2022.

Announcing SWR 2.0

We are excited to announce the release of SWR 2.0! The new version comes with a lot of improvements:

  • New useSWRMutation hook
  • Enhanced mutation and optimistic UI capabilities
  • SWR DevTools
  • Preload resource
  • Improved React 18 support

And more!

Read our blog post and migration guide: https://swr.vercel.app/blog/swr-v2

What's Changed

New Contributors

Full Changelog: https://github.com/vercel/swr/compare/1.2.2...2.0.0

2.0.0-rc.3

Published on Mon Nov 28 2022.

What's Changed

Full Changelog: https://github.com/vercel/swr/compare/2.0.0-rc.1...2.0.0-rc.3

Last updated on August 27, 2021