Releases: marcellomontemagno/react-ufo
Releases · marcellomontemagno/react-ufo
v0.0.7
this release should be a big step forward towards a first stable version
- removing
useFetchEffect
in favour ofuseFetchCallback
[BREAKING] - renaming
useFetchCallback
touseFetcher
[BREAKING] - renaming
resource
torequestState
[BREAKING] - renaming
setResource
tosetRequestState
[BREAKING] callback
now returns a promise reliably- providing
setLoading
,setError
,setData
andsetRequestState
- providing
callback.ignore()
- invoking
callback.ignore()
instead ofcallback.abort()
on component unmount [BREAKING] - more examples
- readme update
v0.0.6
- avoid resolving aborted requests also when the abort signal is not passed to fetch API [potentially BREAKING (new behaviour)]
- readme update and axios example
v0.0.5
- 100% test coverage
- usging
async
await
overawaitResource
for cascading fetches [BREAKING] - deleted
awaitResource
api [BREAKING] - change the shape of the result of the hooks [BREAKING]
- change the result of the hooks into an iterable object
- reset error on abort [potentially BREAKING (new behaviour)]
- cascade fetch errors [potentially BREAKING (new behaviour)]
- propagate unhandled rejections [potentially BREAKING (new behaviour)]
- simplify code
v0.0.4
- no state update can happen after unmount if abort signal is propagated to fetchAPI [potentially BREAKING (new behaviour)]
- aborting a request also reverts the loading state [potentially BREAKING (new behaviour)]
- it is possible to invoke callback.abort before the request is started
- examples have been updated and made available on codesandbox.io
v0.0.2
Some extra info added to package.json
v0.0.1
First unstable release