@store-sync/redux-middleware
TypeScript icon, indicating that this package has built-in type declarations

0.0.5 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i @store-sync/redux-middleware

Weekly Downloads

2

Version

0.0.5

License

MIT

Unpacked Size

16.9 kB

Total Files

20

Last publish

Collaborators

  • joaojeronimo