redux-axios is a Redux middleware that intercepts actions with a payload.request property and dispatches corresponding success/failure actions based on Axios responses. At version 0.0.2, it is an early-stage, unmaintained package with no recent releases. It differentiates itself by allowing per-action client selection and promise chaining on dispatch. However, it lacks TypeScript definitions, has undocumented side effects, and is not compatible with modern Redux toolkits.
npm install redux-axiosNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to set up the redux-axios middleware with a custom Axios instance and dispatch an action that triggers an HTTP request.
Consider using axios in a custom middleware or a maintained alternative like redux-axios-middleware.
Ensure every action intended for HTTP has payload.request defined.
Pass an axios instance (created via axios.create()) as the first argument.
Ensure your client map has a 'default' key or always specify a valid client name.
Consider migrating to a more modern Redux async solution.
Use: const axiosMiddleware = require('redux-axios').default;Create an Axios instance first: const client = axios.create({...});Add payload.request to the action object.