NewAI Enhanced
v2.4.0
Fixes
useSWRImmutablenow properly overrides globalrefreshIntervalsetting- Extra render eliminated when changing to new key with
useSWRImmutable - Unnecessary rerenders caused by
isHydrationcheck removed preload()now runs only on client (prevents server-side execution)
What's Changed
- chore: Migrate suspense related tests to e2e by @promer94 in https://github.com/vercel/swr/pull/4204
- CI: add missing flag for canary test by @promer94 in https://github.com/vercel/swr/pull/4206
- fix: Ensure useSWRImmutable overrides global refreshInterval by @CODEAbhinav-art in https://github.com/vercel/swr/pull/4208
- fix: Extra render when changing to new key with useSWRImmutable by @promer94 in https://github.com/vercel/swr/pull/4209
- fix: isHydration will cause unnecessary rerender by @promer94 in https://github.com/vercel/swr/pull/4212
- fix: Ensure preload runs only on client by @Copilot in https://github.com/vercel/swr/pull/4213
New Contributors
- @CODEAbhinav-art made their first contribution in https://github.com/vercel/swr/pull/4208
- @Copilot made their first contribution in https://github.com/vercel/swr/pull/4213
Full Changelog: https://github.com/vercel/swr/compare/v2.3.8...v2.4.0