A fetch-based adapter for redux-api-call that enables making API requests via the HTML5 Fetch API. Current stable version is 1.1.1, with low release cadence. Provides a lightweight alternative to other adapters (e.g., axios) by leveraging native fetch. Requires redux-api-call as a peer dependency. Primarily used in Redux-based React apps where fetching via fetch is preferred.
npm install redux-api-call-adapter-fetchNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to create an API call instance using the fetch adapter and make a GET request.
Call adapter as a function: const adapterInstance = adapter({ baseUrl: 'https://api.example.com' });Consider using a maintained alternative like redux-api-call's axios adapter or RTK Query.
Install 'node-fetch' and set global.fetch = require('node-fetch') in Node <18.Use 'import adapter from 'redux-api-call-adapter-fetch'' or 'const adapter = require('redux-api-call-adapter-fetch').default'Install redux-api-call: npm install redux-api-call
Install node-fetch and set global.fetch = require('node-fetch'); or use Node 18+.