A lightweight adapter for mobx-rest that uses the native fetch API to perform HTTP requests. Version 0.1.4 is the latest, but the package appears to be in early development with minimal maintenance. It lacks file upload and progress tracking, which are available in mobx-rest-jquery-adapter. Note that mobx-rest itself is deprecated in favor of mobx-rest-api, making this adapter also obsolete for new projects.
npm install mobx-rest-fetch-adapterNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Configures the fetch adapter with custom headers and credentials, then creates a mobx-rest model and saves a new todo.
Migrate to mobx-rest-api and use the integrated fetch support or another adapter.
Use mobx-rest-jquery-adapter if you need these features, or implement your own adapter.
Use import syntax and ensure your project is set up for ES modules.
Use import { fetchAdapter } from 'mobx-rest-fetch-adapter' or set type: module in package.json.Install a fetch polyfill like 'whatwg-fetch' or use Node 18+ with native fetch.