React Ufo Versions Save

🛸 A simple React hook to help you with data fetching 🛸

v0.0.7

4 years ago

this release should be a big step forward towards a first stable version

  • removing useFetchEffect in favour of useFetchCallback [BREAKING]
  • renaming useFetchCallback to useFetcher [BREAKING]
  • renaming resource to requestState [BREAKING]
  • renaming setResource to setRequestState [BREAKING]
  • callback now returns a promise reliably
  • providing setLoading, setError, setData and setRequestState
  • providing callback.ignore()
  • invoking callback.ignore() instead of callback.abort() on component unmount [BREAKING]
  • more examples
  • readme update

v0.0.6

4 years ago
  • 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

4 years ago
  • 100% test coverage
  • usging async await over awaitResource 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

4 years ago
  • 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

4 years ago

Some extra info added to package.json

v0.0.1

4 years ago

First unstable release