Change Log
Please visit the SWR release page for all history releases.
v2.3.6
Published on Mon Aug 11 2025.
Patches
- fix: do not error when not enabled during suspense by @huozhi in https://github.com/vercel/swr/pull/4156
Full Changelog: https://github.com/vercel/swr/compare/v2.3.5...v2.3.6
v2.3.5
Published on Sat Aug 09 2025.
Patches
- perf: optimize
useSWRConfig
withuseMemo
to maintain stable reference by @samuel871211 in https://github.com/vercel/swr/pull/4110 https://github.com/vercel/swr/pull/4076 - fix: react.use should not depend on data condition by @huozhi in https://github.com/vercel/swr/pull/4150
Chores
- doc: Sync
PublicConfiguration.onDiscarded
tsdoc with SWR official website by @samuel871211 in - test: e2e test for 2702 by @promer94 in https://github.com/vercel/swr/pull/4154
New Contributors
- @eungwang1 made their first contribution in https://github.com/vercel/swr/pull/2947
Full Changelog: https://github.com/vercel/swr/compare/v2.3.4...v2.3.5
v2.3.5-beta.0
Published on Wed Aug 06 2025.
Patches
- perf: optimize
useSWRConfig
withuseMemo
to maintain stable reference by @samuel871211 in https://github.com/vercel/swr/pull/4110 - doc: Sync
PublicConfiguration.onDiscarded
tsdoc with SWR official website by @samuel871211 in https://github.com/vercel/swr/pull/4076 - feat: modify cache type to allow generic usage by @eungwang1 in https://github.com/vercel/swr/pull/2947
- Revert "feat: modify cache type to allow generic usage" by @huozhi in https://github.com/vercel/swr/pull/4151
- fix: react.use should not depend on data condition by @huozhi in https://github.com/vercel/swr/pull/4150
New Contributors
- @eungwang1 made their first contribution in https://github.com/vercel/swr/pull/2947
Full Changelog: https://github.com/vercel/swr/compare/v2.3.4...v2.3.5-beta.0
v2.3.4
Published on Wed Jul 02 2025.
What's Changed
- Fix markdown typo by @Nusab19 in https://github.com/vercel/swr/pull/4106
- fix: check "if (!error)" skip error if value is cast to false by @vtgrachev in https://github.com/vercel/swr/pull/4118
- feat: Improve global suspense-enabled
data
type by @oosawy in https://github.com/vercel/swr/pull/4126 - fix: Performance improvement by reducing calls to toString() by @garyhuntddn in https://github.com/vercel/swr/pull/4092
- fix: Optimize the revalidation logic for same key requests. by @agadzik in https://github.com/vercel/swr/pull/4138
New Contributors
- @Nusab19 made their first contribution in https://github.com/vercel/swr/pull/4106
- @vtgrachev made their first contribution in https://github.com/vercel/swr/pull/4118
- @garyhuntddn made their first contribution in https://github.com/vercel/swr/pull/4092
Full Changelog: https://github.com/vercel/swr/compare/v2.3.3...v2.3.4
v2.3.3
Published on Thu Mar 06 2025.
Patches
- enhance: use empty prototype object by @huozhi in https://github.com/vercel/swr/pull/4099
- Initialise nextFocusRevalidatedAt on mount by @mgoodfellow in https://github.com/vercel/swr/pull/2857
Misc
- Update Twitter references to X by @ManuLpz4 in https://github.com/vercel/swr/pull/4103
New Contributors
- @ManuLpz4 made their first contribution in https://github.com/vercel/swr/pull/4103
- @mgoodfellow made their first contribution in https://github.com/vercel/swr/pull/2857
Full Changelog: https://github.com/vercel/swr/compare/v2.3.2...v2.3.3