redux-storage-engine-remoteendpoint
v1.3.0
Published
A remote endpoint storege engine for redux-storage
Downloads
17
Maintainers
Readme
redux-storage-engine-remoteendpoint
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.