use-http
use-http copied to clipboard
🐶 React hook for making isomorphic http requests
Is there a way for me to pass query params to a `get()` function, i.e like `axios.get(url, options)`?
How can you use `use-http` to fetch multiple URLs at once with a single hook? Ideally there would be a way to pass in an array which described a list...
**Describe the bug** Using use-http single call to endpoint trigers component to rerender three times, instead of two. **⚠️ Codesandbox ⚠️** https://codesandbox.io/s/pedantic-frog-sovey?file=/src/App.js **Expected behavior** Component should render two times instead...
**Describe the bug** If the data option is set to an empty array as the default value, I would expect to get the default value if the request returns an...
Hello, is there a way to type individual methods that useFetch() returns? To me it seems logical to use the hook like this: ``` const { get, del, response, loading...
Hello, is there any way to retrieve the headers from an response in the interceptor configuration? I cannot find it, but I think I am missing something. Thanks, Andreas ```...
Hello, Apologies in advance if I just missed this feature - but essentially I wanted to get a callback for when the request is finished in the hook. It is...
Getting the error `There is no persistent storage on the Server currently` when using `useFetch` with `persist: true` in a Next.js app: ```ts const { loading, data } = useFetch("/api/ip",...
Currently, is not possible to set infinite retries (https://use-http.com/#/?id=retries). The `retries` parameter is aways necessary and it doesnt accept `Infinite`, `-1`, or `() => true`. If possible, enable a option...
**Describe the bug** When using managed state, if an error occurs in an async function for the **first** time, `error` is initially undefined while `request.error` immediately contains the expected error....