0.0.5 • Published 5 years ago
@store-sync/redux-middleware v0.0.5
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)
)
0.0.5
5 years ago