@store-sync/redux-middleware
v0.0.5
Published
Redux middleware that syncs state
Downloads
2
Readme
reduxMiddleware
Syncs your redux store with a store-sync backend
Usage
import { createStore, combineReducers, applyMiddleware } from 'redux'
import storeSync from '@store-sync/redux-middleware'
import userReducer from './user-reducer'
const sync = storeSync({
url: 'wss://yourbackend.com/'
})
const userStore = createStore(
userReducer,
applyMiddleware(sync)
)