use-http icon indicating copy to clipboard operation
use-http copied to clipboard

🐶 React hook for making isomorphic http requests

Results 92 use-http issues
Sort by recently updated
recently updated
newest added

For some reason, the tests are passing locally, but not in circleci. ![image](https://user-images.githubusercontent.com/5455859/76708918-ee394380-66b7-11ea-9c89-103dcb45cfe9.png)

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...

![image](https://user-images.githubusercontent.com/120174736/210047770-c02a6143-366f-4fd8-9574-152f46c521a9.png) can anyone tell me , the post fetch can run onmount or onupdate ?