1.3.0 • Published 8 years ago

redux-storage-engine-remoteendpoint v1.3.0

Weekly downloads
17
License
MIT
Repository
github
Last release
8 years ago

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.