Version 1.0
Finally Version 1.0
Lots of upgrades in this version. This new major release is v1.0.2
on npm.
Updates
- Retry Functionality.
retries
,retryDelay
, andretryOn
- Suspense(experimental) Support.
suspense
- Persistent Caching.
persist
- Added
cache
to return ofuseFetch
for better cache debugging and to clear the cache for instance when a user signs out. - Fixed infinite loop/extra rendering issues when passing useFetch variables to useEffect dependencies #228 #185
- Fixed
response interceptor
not firing when results loaded from cache #235 - Can now have
[]
and''
as body of http request. Caveat, if posting a string as the body, must have a routepost('/', 'your body')
- Added
async
support forinterceptors.response
#214 - Remove
content-type: application/json
when posting formData #213 - Promise.all fixes #211
- Fixed
cannot perform update on unmounted component
bug #207 - Should now work in TypeScript apps made using parcel #202
- Lot's of videos added!