axios-r is a Redux wrapper for Axios that automatically dispatches Redux actions on HTTP requests, handles token expiration with request queuing and retry, and supports ETag caching. The library integrates with Axios interceptors to intercept request/response lifecycle and dispatch corresponding actions to update your Redux store. As of version 2.1.1 (latest), it requires React ^16.0.0 as a peer dependency and Node >=10. It differentiates from other Axios-Redux integrations by its built-in request queue for failed auth requests and simple ETag caching flag.
npm install axios-rNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Configures Axios with axios-r interceptors and uses axiosR to make a GET request with ETag caching.
Use `import { axiosRInit, axiosR } from 'axios-r'` instead of default import.Only use `dispatcher` in the config file as shown in documentation.
Ensure the second string matches the function name exported in the Actions file (e.g., 'get' for getProjects).
Make sure your reducer's initial state includes `etag: null` or similar.
Upgrade to React 16 compatibility layer or switch to a more modern Redux middleware.
Ensure axios.config.js calls axiosRInit(axios, store, Actions) after store creation.
Pass an object structure like: { projects: { get: () => ({ type: 'GET_PROJECTS' }) } }.Run `npm install axios-r` and ensure the import path is correct.
Check that the second string exactly matches a key in the Actions object (e.g., 'get' if action creator is named 'get').