0.0.5 • Published 5 years ago

@store-sync/redux-middleware v0.0.5

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

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)
)