A Redux integration library for rest-fetcher-base, providing a structured way to manage API calls and store results in Redux state. Current stable version is 1.0.68. It offers a centralized reducer pattern for API calls, supporting dynamic endpoints, request/response interceptors, and multiple override levels. Differentiators: unlike redux-api which uses FLUX architecture, this library consolidates all API state under a single named reducer, simplifying store structure. Release cadence is irregular. Also supports CommonJS via require.
npm install rest-fetcher-reduxNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Configures API endpoints, integrates with Redux store, and demonstrates making two API calls with automatic state updates.
npm install rest-fetcher-redux --save or yarn add rest-fetcher-redux
Ensure store is created with combineReducers including api.getReducer(), then call api.setDispatcher(store.dispatch).
Use relative paths (e.g., '/api/login') in endpoint definitions.
Use a consistent prefix, or update your middleware accordingly.
Refer to rest-fetcher-redux documentation; do not use old redux-rest-fetcher API.
Use 'import api from 'rest-fetcher-redux' (default import) instead of named import.
Call api.setEndpoints(apiCalls) during store configuration before any API call.
Install a fetch polyfill like 'whatwg-fetch' and call api.setFetch(window.fetch) after polyfill import.
Ensure api.setDispatcher(store.dispatch) is called after store creation.