Releases: vercel/swr
0.3.4
0.3.3
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!
0.3.2
0.3.1
Patches
- Add useDebugValue to show the data label in the React DevTools: #578
- Fix problem of unnecessary revalidates when resolved data is falsy: #524
- Added example for SWR Request De-duplication feature: #519
- Fix:
eventsRef
should trigger the lastest version of config callbacks: #521 - Fix useSWRInfinite response type: #584
- Fix: 'revalidateOnFocus' and 'revalidateOnReconnect' shoule be statful: #583
- Swr.vercel.app: #605
- Fix: do not rerender if data unchanged: #464
Credits
Huge thanks to @Kexin-Li, @mha15, @tanmaylaud, @lintuming, @lynxtaa, @promer94, @thomaswang, and @morgs32 for helping!
0.3.0
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
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 CODE_OF_CONDUCT.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
0.2.1
Patches
- Upgrade Next.js: #324
- Minor documentation improvements: #321
- Add Data and Error generics to pagesResponseInterface: #294
- Remove unused import in example: #338
- Use latest: #342
- Test: imporve dynamic polling interval test: #351
- Update handle in CODEOWNERS: 65449cd
- Remove the server side suspense warning: #370
- Change if condition and remove 'do nothing': #356
- Add Optimistic UI with Immer example: #374
- Fix return type of mutateCallback: #381
- Fix axios example unexpected mutation behavior: #380
- Fix: data inconsist on key change when fetcher is synchronized: #369
- Update links to Vercel: #385
- RevalidateOnMount flag that disable automatic revalidation on mount: #225
- Update README.md: #389
Credits
Huge thanks to @timneutkens, @akx, @Kerumen, @zusinShinpei, @matamatanot, @promer94, @hikaru7719, @sergiodxa, @jericopulvera, @huozhi, @sarupbanskota, and @ciak0 for helping!
0.2.0
Patches
- Fix polling conditions: #281
- Change useRequest.js to use
mutate
: #292 - Fix 'reconnect' assignment: #297
- Dedupe extra requests after mutation: #296
- Use window as a target for online event: #300
- Bump acorn from 5.7.3 to 5.7.4: #303
- Update examples/server-render: Use getServerSideProps: #307
- Document the compare option: #320
- Hoist side effects out of useSWRPages render fiber: #317
- Remove keyRef check; add tests: #323
Credits
Huge thanks to @mattfwood, @zhengjitf, @buffaybu, @nulladdict, @matamatanot, @joshkel, and @neolefty for helping!