Skip to content
ドキュメント
変更履歴

変更履歴

すべてのリリース履歴については、 SWR のリリースページ にアクセスしてください。

v2.0.3

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

Thu Jan 26 2023 に公開

Patches

Chores

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

v2.0.1

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

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

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 2021年8月27日