JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 725
  • Score
    100M100P100Q103767F
  • License MIT

🛸 UFO - Use fetch orderly - A small collection of react hooks to help you handle data fetching with no fuss 🛸

Package Exports

  • react-ufo

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (react-ufo) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Actions Status

ufo
UFO - Use fetch orderly
react-ufo is a collection of react hooks to help you handle data fetching with no fuss

Disclamer

These APIs are experimental and there might be some API change before a stable version is released. Use the unstable version at your own risk.

Installation

npm install --save react-ufo

Examples

If you want to invoke a remote API inside an event callback: Fetch Callback Example
If you want to invoke a single API on mount/update: Fetch Effect Examplele
If you want to invoke multiple APIs depending on each other: Cascading Fetches Example

Dependencies

This package has zero dependencies but in order to support fetches abortion you will need AbortController (or a polyfill such as abortcontroller-polyfill) in your environment