Skip to content

Change Log

Please visit the SWR release page for all history releases.

0.4.0

Published on Thu Jan 07 2021.

Minor Changes

  • Feature: provide config.isPaused indicating idle state and stop revalidation: #845
  • First page of useSWRInfinite should reuse the cache from useSWR: #799

Patches

  • Keep isValidating be true when there are two concurrent requests: #817
  • Fix act: #839
  • Fix: clear refresh timer on effects change and check it on starting new timer: #853
  • Add test for #852: #855

Credits

Huge thanks to @huozhi, @MoonBall, and @promer94 for helping!

0.3.11

Published on Sun Dec 20 2020.

Patches

  • Fix #832: #833
  • Test(fetch) add test for default fetcher: #834

Credits

Huge thanks to @promer94 and @darrenjennings for helping!

0.3.10

Published on Sat Dec 19 2020.

Patches

  • Fix: mark isValidating as false when key is falsy: #757
  • Fix README.md typo: #783
  • Fix: do mount check in config callback: #787
  • Update api-hooks example README.md: #790
  • Return '@null' if args is null ASAP: #767
  • Bump ini from 1.3.5 to 1.3.8: #806
  • Close #830: #831

Credits

Huge thanks to @huozhi, @mingcenwei, @promer94, @CrutchTheClutch, and @matamatanot for helping!

0.3.9

Published on Tue Nov 17 2020.

Patches

  • Replace rIC with rAF: #744
  • Fix race condition when calling mutate synchronously: #735
  • Refactor: support SSR in Deno: #754
  • Fix eslint error: #768
  • Fix mutateCallback types: #745
  • Add CodeSandbox CI: #769
  • Dispatch's payload type is actionType and run lint: #772
  • Fix suspense: #777

Credits

Huge thanks to @ije, @umidbekkarimov, @matamatanot, and @promer94 for helping!

0.3.8

Published on Sun Nov 01 2020.

Patches

  • Allow passing null as the fetcher function for lazy execution: #730
  • Add test for mutate with async-fn: #739

Credits

Huge thanks to @maggo and @promer94 for helping!