Full Changelog: https://github.com/vercel/swr/compare/v2.2.0...v2.2.1-beta.1
React.use API by @himself65 in https://github.com/vercel/swr/pull/2596startTransition so mutation hook could update immediately by @promer94 in https://github.com/vercel/swr/pull/2654useSWRMutation type. by @promer94 in https://github.com/vercel/swr/pull/2604Full Changelog: https://github.com/vercel/swr/compare/v2.1.5...v2.2.0
Full Changelog: https://github.com/vercel/swr/compare/v2.2.0-beta.4...v2.2.0-beta.5
Full Changelog: https://github.com/vercel/swr/compare/v2.2.0-beta.3...v2.2.0-beta.4
Full Changelog: https://github.com/vercel/swr/compare/v2.2.0-beta.2...v2.2.0-beta.3
Full Changelog: https://github.com/vercel/swr/compare/v2.2.0-beta.1...v2.2.0-beta.2
startTransition so mutation hook could update immediately by @promer94 in https://github.com/vercel/swr/pull/2654Full Changelog: https://github.com/vercel/swr/compare/v2.2.0-beta.0...v2.2.0-beta.1
React.use API by @Himself65 in https://github.com/vercel/swr/pull/2596useSWRMutation type. by @promer94 in https://github.com/vercel/swr/pull/2604Full Changelog: https://github.com/vercel/swr/compare/v2.1.5...v2.2.0-beta.0
Full Changelog: https://github.com/vercel/swr/compare/v2.1.4...v2.1.5
Full Changelog: https://github.com/vercel/swr/compare/v2.1.3...v2.1.4
Data for useSWRSubscriptionOptions by @promer94 in https://github.com/vercel/swr/pull/2551Full Changelog: https://github.com/vercel/swr/compare/v2.1.2...v2.1.3
swr/subscriptionSWRSubscriptionOptions type for swr/subscriptionuseSWRSubscription types by @promer94 in https://github.com/vercel/swr/pull/2535Full Changelog: https://github.com/vercel/swr/compare/v2.1.1...v2.1.2
data type for default SWRConfig generic type by @connorch in https://github.com/vercel/swr/pull/2506Full Changelog: https://github.com/vercel/swr/compare/v2.1.0...v2.1.1
Checkout subscription docs and useSWRInfinite parallel fetching docs for more details
Full Changelog: https://github.com/vercel/swr/compare/v2.0.4...v2.1.0
Full Changelog: https://github.com/vercel/swr/compare/v2.0.3...v2.0.4
- characters in README.md by @JanKaifer in https://github.com/vercel/swr/pull/2334Full Changelog: https://github.com/vercel/swr/compare/v2.0.2...v2.0.3
Full Changelog: https://github.com/vercel/swr/compare/v2.0.1...v2.0.2
In this patch release, we majorly improved typing support and SWR can infer the types based on the configuration.
suspense option is true, the returned data will exclude undefined and the isLoading will always be false.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:
Full Changelog: https://github.com/vercel/swr/compare/2.0.0...v2.0.1
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
Full Changelog: https://github.com/vercel/swr/compare/2.0.0-rc.1...2.0.0-rc.3