Skip to content

Releases: vercel/swr

v2.4.2

22 Jun 17:46
f1c1fd8

Choose a tag to compare

Patches

  • fix: guard against double-unsubscribe removing wrong subscriber in cache.ts by @tomohiro86 in #4252
  • Prevent resolved promise to suspend due to missing status by @devjiwonchoi in #4271

Chores

New Contributors

Full Changelog: v2.4.1...v2.4.2

v2.4.1

22 Jun 17:44

Choose a tag to compare

Patches

New Contributors

Full Changelog: v2.4.0...v2.4.1

v2.4.0

01 Feb 03:02

Choose a tag to compare

What's Changed

  • chore: Migrate suspense related tests to e2e by @promer94 in #4204
  • CI: add missing flag for canary test by @promer94 in #4206
  • fix: Ensure useSWRImmutable overrides global refreshInterval by @CODEAbhinav-art in #4208
  • fix: Extra render when changing to new key with useSWRImmutable by @promer94 in #4209
  • fix: isHydration will cause unnecessary rerender by @promer94 in #4212
  • fix: Ensure preload runs only on client by @Copilot in #4213

New Contributors

Full Changelog: v2.3.8...v2.4.0

v2.3.8

15 Dec 18:52

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v2.3.7...v2.3.8

v2.3.7

28 Nov 20:29

Choose a tag to compare

What's Changed

Full Changelog: v2.3.6...v2.3.7

v2.3.6

11 Aug 15:54

Choose a tag to compare

Patches

  • fix: do not error when not enabled during suspense by @huozhi in #4156

Full Changelog: v2.3.5...v2.3.6

v2.3.5

09 Aug 08:57

Choose a tag to compare

Patches

Chores

  • doc: Sync PublicConfiguration.onDiscarded tsdoc with SWR official website by @samuel871211 in
  • test: e2e test for 2702 by @promer94 in #4154

New Contributors

Full Changelog: v2.3.4...v2.3.5

v2.3.5-beta.0

06 Aug 14:45

Choose a tag to compare

v2.3.5-beta.0 Pre-release
Pre-release

Patches

  • perf: optimize useSWRConfig with useMemo to maintain stable reference by @samuel871211 in #4110
  • doc: Sync PublicConfiguration.onDiscarded tsdoc with SWR official website by @samuel871211 in #4076
  • feat: modify cache type to allow generic usage by @eungwang1 in #2947
  • Revert "feat: modify cache type to allow generic usage" by @huozhi in #4151
  • fix: react.use should not depend on data condition by @huozhi in #4150

New Contributors

Full Changelog: v2.3.4...v2.3.5-beta.0

v2.3.4

02 Jul 15:36

Choose a tag to compare

What's Changed

  • Fix markdown typo by @Nusab19 in #4106
  • fix: check "if (!error)" skip error if value is cast to false by @vtgrachev in #4118
  • feat: Improve global suspense-enabled data type by @oosawy in #4126
  • fix: Performance improvement by reducing calls to toString() by @garyhuntddn in #4092
  • fix: Optimize the revalidation logic for same key requests. by @agadzik in #4138

New Contributors

Full Changelog: v2.3.3...v2.3.4

v2.3.3

06 Mar 20:15

Choose a tag to compare

Patches

Misc

New Contributors

Full Changelog: v2.3.2...v2.3.3