use-axios-client
use-axios-client copied to clipboard
Make axios requests in React using hooks.
I noticed `loading` in `useAxios` is initially set to `false`, which causes bug in my program. For example: ```jsx const { data, loading, error } = useAxios({ url: API_URL })...
Add a caching layer and expose a `cachePolicy` (or similar) config option to consumers.
Currently if a consumer triggers multiple requests, a race condition can occur causing unexpected results. Example: - Request 1 triggered on initial render - Request 2 is triggered as an...
We should document which browsers we support -- doesn't need to be in the README necessarily, but maybe a section or page on the docs site. My thought is that...
isMount reference not setting to true on mount and after unmount useBaseAxios hook in which case we get a bug related to infinity data loading. I think this will help:...
Bumps [json5](https://github.com/json5/json5) from 2.1.1 to 2.2.3. Release notes Sourced from json5's releases. v2.2.3 Fix: [email protected] is now the 'latest' release according to npm instead of v1.0.2. (#299) v2.2.2 Fix: Properties...
Bumps [json5](https://github.com/json5/json5) from 1.0.1 to 1.0.2. Release notes Sourced from json5's releases. v1.0.2 Fix: Properties with the name __proto__ are added to objects and arrays. (#199) This also fixes a...
Bumps [express](https://github.com/expressjs/express) from 4.17.1 to 4.18.2. Release notes Sourced from express's releases. 4.18.2 Fix regression routing a large stack in a single route deps: [email protected] deps: [email protected] perf: remove unnecessary...
Bumps [qs](https://github.com/ljharb/qs) from 6.5.2 to 6.5.3. Changelog Sourced from qs's changelog. 6.5.3 [Fix] parse: ignore __proto__ keys (#428) [Fix] utils.merge: avoid a crash with a null target and a truthy...