use-http
use-http copied to clipboard
🐶 React hook for making isomorphic http requests
**Describe the bug** When using the provided example, no data is populated into the state. **To Reproduce** Use that example ``` import { useFetch } from "use-http"; function Data() {...
Bumps [cross-fetch](https://github.com/lquixada/cross-fetch) from 3.0.4 to 3.1.5. Release notes Sourced from cross-fetch's releases. v3.1.5 What's Changed chore: updated node-fetch version to 2.6.7 by @dlafreniere in lquixada/cross-fetch#124 New Contributors @dlafreniere made their...
Are there option for skipping request by any condition? for example: const {data} = useFetch(`/api/user/${id}`, { skip: !id } ,[id]) If no, maybe add this option in feature-plan. Apollo-Client has...
Bumps [minimist](https://github.com/substack/minimist) from 1.2.5 to 1.2.6. Commits 7efb22a 1.2.6 ef88b93 security notice for additional prototype pollution issue c2b9819 isConstructorOrProto adapted from PR bc8ecee test from prototype pollution PR See full...
Given a http GET request with same URL and same parameters are made in a time window say 5 seconds it should prevent second call and return the promise of...
**Describe the bug** `useFetch` crashes the SSR server if the code makes any call to the getter for a `response`. The getter uses `instanceof Response`, expecting `Reponse` on the global...
Hi! **Describe the bug** I have a question about React Native and cache. I have set the cacheLife option to enable the cache. Even if the value is set, there...
**Describe the bug** Invoking the `get` function too quickly in a short amount of time causes race conditions. **⚠️ Make a Codesandbox ⚠️** https://codesandbox.io/s/use-http-race-conditions-ecnqt?file=/src/App.js **To Reproduce** Steps to reproduce the...
Bumps [ajv](https://github.com/ajv-validator/ajv) from 6.12.0 to 6.12.6. Release notes Sourced from ajv's releases. v6.12.6 Fix performance issue of "url" format. v6.12.5 Fix uri scheme validation (@ChALkeR). Fix boolean schemas with strictKeywords...
Little doc change to eliminate some future confusions. according to the official react docs, the absolute correct way of setting a state that is based on the latest snapshot of...