react-fetch-hook
react-fetch-hook copied to clipboard
React hook for conveniently use Fetch API
The pagination example uses fetch directly rather than useFetch. Was it meant to use useFetch?
Bumps [async](https://github.com/caolan/async) from 2.6.1 to 2.6.4. Changelog Sourced from async's changelog. v2.6.4 Fix potential prototype pollution exploit (#1828) v2.6.3 Updated lodash to squelch a security warning (#1675) v2.6.2 Updated lodash...
It seems like `useFetch` never fetches data if the `depends` is something like `['']`, but sets `isLoading` to false immediately, i.e. pretending like it finished loading, but just producing the...
This isn't an issue, just trying to understand the code (and JS for that matter). Why is this line called with `[1]` instead of `1`? https://github.com/ilyalesik/react-fetch-hook/blob/67223d783901b282090fc20c9426231119b423cb/usePromise.js#L8 Is it handling some...
Hi there, Is there any implementation of react-fetch-hook for GraphQL ? For example, the typical GraphQL query: ``` const MY_QUERY_QUERY = gql` query MyQuery { auth_user { email first_name id...
>=16.8.0
Currently, if a component using usePromise (or useFetch, which uses usePromise) is unmounted before the encapsulated work is complete. It will still try to update the react state and trigger...
This may be related to #24. Whenever I change the dependencies, I get three rerenders where I only expect to see two. Expected: 1. Change dependencies. 2. Render with `isLoading...
Hi thank you for this great react fetch hook, Is there a way to make the fetch abortable and abort it when component is unmount ? Thank you
If rapid requests are issued, like in an autocomplete scenario, isLoading will be false even when hanging requests are still open. In other words: 1. Setup a series of fetches...