Skip to content

Change Log

Please visit the SWR release page for all history releases.

0.3.0

Published on Thu Jul 30 2020.

Minor Changes

  • New infinite loading API: #435
  • Add microbundle: #487
  • Add persistSize option to useSWRInfinite: #490
  • Revert “add microbundle “ (#492): #487
  • Enhance: remove mutate calls from cache: #493
  • Fix page size persistence when remounting: #495
  • Don't retry on error if errorRetryCount is set to 0: #506
  • Fix: check if mounted when trigger rerender: #510
  • Export interfaces used by useSWRInfinite: #511
  • Fix typescript warning: #530
  • Fix: should throw when mutate failed: #557
  • Enhance: fallback to setTimeout when request idle callback is not available: #473
  • Enhance: move online listeners to config (#476): #474

Patches

  • Change name to Vercel: #467
  • Update keyErr on the cache when mutating: #480
  • Test: add test case for error updating in cache when mutate: #481
  • Updated the readme: #513
  • Update link: #516
  • Remove unused command: #544
  • Bump lodash from 4.17.15 to 4.17.19: #531

Credits

Huge thanks to @huozhi, @dominictwlee, @lolPants, @MoeCasts, @markozxuu, @cristianbgp, @ashfaqnisar, @matamatanot, and @Kexin-Li for helping!

0.2.3

Published on Fri Jun 12 2020.

Patches

  • Docs: update notes for returned data from mutate section: #394
  • Change mutateCallback type to allow non-promise return value: #406
  • Fix No bound mutate returned by useRequest hook.: #410
  • Fix mutate not disposing older async mutations: #427
  • Create CODEOFCONDUCT.md: #432
  • Unmount check: #433
  • Fix spread syntax with defineProperties: #436
  • Remove unused file: #441
  • Build: use es5 syntax for esm build (#444): #443
  • Replace ZEIT with Vercel in examples: #442
  • Update docs to explain dependent fetching with falsy: #449
  • Use initialData in suspense mode if provided: #448
  • Docs: setup issue template: #453
  • Make trigger return a promise resolved to the new cache value: #391

Credits

Huge thanks to @huozhi, @ties-v, @shyamlohar, @TheHolyWaffle, @promer94, @alexandregv, @joshkel, @Narigo, and @sergiodxa for helping!

0.2.2

Published on Fri May 22 2020.

Patches

  • Updated asset link: #408

Credits

Huge thanks to @leo for helping!