Skip to content
This repository has been archived by the owner on Nov 26, 2017. It is now read-only.

angular-buch/redux-seamless-immutable

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

redux-seamless-immutable

Helpers for using seamless-immutable in Redux. Provides a compatible combineReducers and routerReducer (for use with react-router-redux).

Installation

$ npm install redux-seamless-immutable

Usage

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

API

combineReducers(reducers)

A seamless-immutable compatible combineReducers.

routerReducer(state, action)

A seamless-immutable compatible replacement for the routerReducer from react-router-redux.

stateTransformer(state)

A stateTransformer for the redux-logger middleware to convert an Immutable store to a plain JS object.

About

Helpers for using seamless-immutable in Redux

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%