github vercel/swr v2.0.1

latest releases: v2.2.6-beta.4, v2.2.6-beta.3, v2.2.6-beta.2...
20 months ago

Brief

In this patch release, we majorly improves the typing support to infer the typing based on the configuration.

  • When the suspense option is true, the returned data will be non-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
swr-2.0.1.mp4

What's Changed

New Contributors

Full Changelog: 2.0.0...v2.0.1

Don't miss a new swr release

NewReleases is sending notifications on new releases.