Open elaijuh opened 9 years ago
I think I have a similar case with redux-thunk. Can thunk work with redux-immutablejs? Even if I set enforceImmutable to false it seems to ignore the thunk middleware and just set the returned function as the new state.
@elaijuh you can pass in false
to the enforceImmutable
key. Alternatively you can use this snippet
export const createReducer = (initialState, handlers, constructor) => {
const enforceImmutable = Immutable.Iterable.isIterable(initialState)
return _createReducer(initialState, handlers, enforceImmutable, constructor)
}
@indexiatech would be great if you could review.
say i have a state like this:
so how to handle in
isFetching
reducer?