davidkpiano / react-redux-form

Create forms easily in React with Redux.
https://davidkpiano.github.io/react-redux-form
MIT License
2.06k stars 252 forks source link

Are examples compatible with immutablejs? #177

Closed favetelinguis closed 8 years ago

favetelinguis commented 8 years ago

Im trying to get the examples working using a immutablejs store but having some problems. Are the examples the same with immutablejs or are there any extra steps needed?

favetelinguis commented 8 years ago

Works just fine, found the error that was unrelated to lib

favetelinguis commented 8 years ago

Or no it does not, modelReducer is returning an object if it is given an immutable map as initialState, i see in the source code that there is support for immutable but in not sure how to use the immutable modelReducer? It is not exposed atm?

favetelinguis commented 8 years ago

So this did the trick:

import {
  modelReducer
} from 'react-redux-form/lib/immutable/index';