Skip to content

nandokakimoto/redux-storage-engine-remoteendpoint

Repository files navigation

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.

About

A remote endpoint storege engine for redux-storage

Resources

License

Stars

Watchers

Forks

Packages

No packages published