Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@store-sync/redux-middleware

joaojeronimo11MIT0.0.5TypeScript support: included

Redux middleware that syncs state

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