use-http
use-http copied to clipboard
🐶 React hook for making isomorphic http requests
It would be nice if there was a way to reset the state (clear the response, error) when using manually triggered fetches. For example, if using `useFetch` for login, would...
Hi, I have been struggling for two days on this. I'm not sure if it's a bug or me not getting the art of this Provider feature. I have this...
If initial requests are made with cachePolicy: 'cache-first', there is no way to invalidate the cache (setting cachePolicy to 'no-cache' on subsequent requests doesn't seem to help).
**Describe the bug** I'm using a API that needs to send a dynamic value on header. But when this value changes, the function that overwrite the global options use the...
**Describe the bug** When using retries, when the fetch is in the delay stage, i.e. delayed between retries, calling the `abort` function from the `useFetch()` hook has no effect. **⚠️...
**Describe the bug** Interceptors aren't chained, in that global interceptors at the provider level, are _overridden_ if an interceptor is introduced at the `useFetch()` hook level There does seem to...
**Describe the bug** Hi, I was just about to use this package, but somehow I'm stuck with creating a button that should execute a "post" on a specific route. But...
**Describe the bug** Support HTTP 1.1 RFC 7231 method DELETE (which may have a BODY) **Steps to reproduce** ``` const fetcher = useFetch('http://my/api'); fetcher.del('widget', {xyz:"123"}); ``` **Observed Behavior** the endpoint...
Hi, Are there plans to support React 18 ?
**Describe the bug** I used an example from the docs. There is prepended slash to query value that is appended to the URL. for example: `https://api.github.com/search/repositories?q=/some_value` should be: `https://api.github.com/search/repositories?q=some_value` How...