use-http
use-http copied to clipboard
🐶 React hook for making isomorphic http requests
For some reason, the tests are passing locally, but not in circleci. 
From what I understand from the documentation, when `cachePolicy = cache-first` and `cacheLife > 0`, the cached data is returned if it has not expired. If the cache has expired,...
**Describe the bug** Race condition causes some requests to never be sent and thus are loading forever **⚠️ Make a Codesandbox ⚠️** https://codesandbox.io/s/falling-shape-3gcsu What I see, since this is a...
adding some tests to memory storage which may be useful for future refactoring
[#302](https://github.com/ava/use-http/issues/302) describes a race condition where an aborted request resets the abort controller ref even though a subsequent request has been issued and already replaced the ref. Code sandbox: https://codesandbox.io/p/sandbox/react-hooks-usefetch-forked-xsdrhl?file=%2Fsrc%2Findex.js...
Currently useFetch only allows for one generic argument - the response body. I suggest adding an optional second argument for the request body. When using libraries like zod it's very...
> Try passing `response` into `useEffect` Hi @alex-cory , got the same question. I'm wondering why adding response to useEffect/useCallback dependency won't cause re-render? Let's say I have three api...
**Describe the bug** Following instructions in .github/contributing.md fails when using the latest React 18. **⚠️ Make a Codesandbox ⚠️** Not relevant **To Reproduce** Steps to reproduce the behavior: 1. Follow...
 can anyone tell me , the post fetch can run onmount or onupdate ?