How to set a property as an array i initial state?
问题 In my reducer I set initial state by: const initialState = fromJS({ results: [], }); However if I try to print results by initialState.get('results') I get an immutable Map . On the other hand if in my reducer (listening to an action) I set the array via ... case LOAD_SUCCESS: return state .set('results', []); ... the array will be an actual (non-Immutable) array after executing: state.get('results') (e.g. in a selector defined via reselect ) Why? 回答1: From the fromJS docs: Deeply converts