An opinionated library for handling REST API calls in Redux apps, providing action creators, reducer generation, state normalization, and a middleware for async request flow. Current version 0.7.3, stable. Release cadence is low; last release was in 2017. Key differentiators: uses redux-actions for FSA-compliant actions, immutable.js for normalized state shape (result, entities, ui, errors), and axios for HTTP. Designed for performance and state consistency.
npm install redux-rest-toolsNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Basic setup: create REST actions, reducer, apply middleware, dispatch request.
Use Immutable.is() for equality checks or convert to JS with toJS() cautiously.
Pin versions: redux-actions@1, axios@0.16, immutable@3.8.
Use onSuccess to modify state or manually dispatch success action with custom data.
Always access entities via state.getIn(['entities', id]) or toJS() then bracket notation.
Configure axios instance globally before using middleware.
npm install redux-rest-tools@0.7.3 --save
import { createRestActions } from 'redux-rest-tools'Convert immutable Map to plain JS using toJS() before dispatching