Skip to content

Releases: vercel/swr

0.4.0

07 Jan 16:46
ec55b66
Compare
Choose a tag to compare

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

20 Dec 17:58
7158af2
Compare
Choose a tag to compare

Patches

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

Credits

Huge thanks to @promer94 and @darrenjennings for helping!

0.3.10

19 Dec 13:19
b0b75b9
Compare
Choose a tag to compare

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

17 Nov 08:58
6b8b401
Compare
Choose a tag to compare

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

01 Nov 10:35
dedc017
Compare
Choose a tag to compare

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!

0.3.7

29 Oct 14:23
0817515
Compare
Choose a tag to compare

Patches

  • Add README to examples: #716
  • Feat: make swr more configurable across platform: #690
  • Accept React 17 as a peer dependency: #725

Credits

Huge thanks to @thinceller, @huozhi, and @bcomnes for helping!

0.3.6

19 Oct 13:33
4d6be3d
Compare
Choose a tag to compare

Patches

  • Fix: missing dedupe in updaterInterface: #688
  • Doc: fix readme's Request Deduplication example: #699
  • Fix: error should not be cleared while revalidating: #701

Credits

Huge thanks to @huozhi and @Brew-Brew for helping!

0.3.5

25 Sep 18:04
651c368
Compare
Choose a tag to compare

Patches

  • Remove unnecessary dependencies from mutate and setSize: #665

0.3.4

23 Sep 16:52
bf4ed4b
Compare
Choose a tag to compare

Patches

  • Chore: swap fde for dequal: #655
  • Add React and Hook config for ESLint: #270

Credits

Huge thanks to @lukeed and @innocentiv for helping!

0.3.3

20 Sep 15:40
c04ef75
Compare
Choose a tag to compare

Patches

  • Bump handlebars from 4.5.2 to 4.7.6: #646
  • Try fix cannot stop polling by setting refreshInterval (#638): #632
  • Chore: fix error when data tobe 0 null: #622
  • Promote isValidating to the global level of data and error: #569
  • Remove Isomorphic Fetch from Axios Typescript example: #607
  • Add a default fetcher using Fetch API: #367

Credits

Huge thanks to @anc95, @blackarctic, @jmichaliga, and @sergiodxa for helping!