Helpers for using seamless-immutable
in Redux. Provides a compatible combineReducers
and routerReducer
(for use with react-router-redux
).
$ npm install redux-seamless-immutable
import { combineReducers, routerReducer, stateTransformer } from 'redux-seamless-immutable'
import { createStore, applyMiddleware } from 'redux'
import createLogger from 'redux-logger'
import reducer from './reducers'
const rootReducer = combineReducers({
reducer,
routing: routerReducer
})
const loggerMiddleware = createLogger({
stateTransformer: stateTransformer
})
const store = createStore(
rootReducer,
applyMiddleware(
loggerMiddleware
)
)
A seamless-immutable
compatible combineReducers
.
A seamless-immutable
compatible replacement for the routerReducer
from react-router-redux.
A stateTransformer
for the redux-logger
middleware to convert an Immutable
store to a plain JS object.