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
useFetchEffectin favour ofuseFetchCallback[BREAKING] - renaming
useFetchCallbacktouseFetcher[BREAKING] - renaming
resourcetorequestState[BREAKING] - renaming
setResourcetosetRequestState[BREAKING] callbacknow returns a promise reliably- providing
setLoading,setError,setDataandsetRequestState - 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
asyncawaitoverawaitResourcefor cascading fetches [BREAKING] - deleted
awaitResourceapi [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