Closed L-Jovi closed 7 years ago
is that state on top level immutable? I mean the whole state tree
Yes
is that each child immutable? like state.child1Reducer or state.child1Reducer.child2Reducer
Yes
if I call once state.toJS() in connect() under react-redux api, are all children convert to plain javascript object?
If you pass them state as a plain object, then yes. You shouldn't do this. It would negate the purpose of using redux-immutable
, i.e. avoid using toJS
anywhere. Use Immutable.js API.
sorry to trouble, I'm ensure how does
combineReducers
handle nested state object,I mean if I define the state structure like below:
my state tree is like:
My question is,
state
on top level immutable? I mean the whole state treestate.child1Reducer
orstate.child1Reducer.child2Reducer
state.toJS()
inconnect()
underreact-redux
api, are all children convert to plain javascript object?thanks for your time,
regards.