redux-storage-engine-remoteendpoint

1.3.0 • Public • Published

redux-storage-engine-remoteendpoint

build license npm version npm downloads

A remote endpoint storage engine for redux-storage.

Usage

Everytime the store changes, save it on the server.

import createEngine from 'redux-storage-engine-remoteendpoint';
const engine = createEngine('http://load-url', 'http://save-url', options);

Where load-url is the url that will be used to fetch the last store via GET and save-url is the url that will be used to save the store via POST

options is an optional object that will be passed to fetch as options to both get and save requests. Check github fetch polyfill to see which options you can use.

Package Sidebar

Install

npm i redux-storage-engine-remoteendpoint

Weekly Downloads

5

Version

1.3.0

License

MIT

Last publish

Collaborators

  • lett