React hook for making isomorphic http requests. SSR (server-side rendering) support. TypeScript support, 2 dependencies (use-ssr, urs), GraphQL support (queries + mutations). Provider to set default URL and options, request/response interceptors, and React Native support. Aborts/Cancels pending HTTP requests when a component unmounts, built-in caching, persistent caching support, and experimental support, with retry functionality. If the last argument of useFetch is not a dependency array [], then it will not fire until you call one of the HTTP methods like get, post, etc. If you need support for IE, you will need to add additional polyfills. The React docs suggest these polyfills, but from this issue, we have found it to work fine with the react-app-polyfill. If you have any updates to this browser list, please submit a PR!

Features

  • SSR (server side rendering) support
  • TypeScript support
  • GraphQL support (queries + mutations)
  • Aborts/Cancels pending http requests when a component unmounts
  • Persistent caching support
  • Request/response interceptors

Project Samples

Project Activity

See All Activity >

License

MIT License

Follow useFetch

useFetch Web Site

Other Useful Business Software
Build Securely on AWS with Proven Frameworks Icon
Build Securely on AWS with Proven Frameworks

Lay a foundation for success with Tested Reference Architectures developed by Fortinet’s experts. Learn more in this white paper.

Moving to the cloud brings new challenges. How can you manage a larger attack surface while ensuring great network performance? Turn to Fortinet’s Tested Reference Architectures, blueprints for designing and securing cloud environments built by cybersecurity experts. Learn more and explore use cases in this white paper.
Download Now
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of useFetch!

Additional Project Details

Programming Language

TypeScript

Registered

2023-03-01