3 ms·
Wait - we're talking about the result of the combination? If you follow a 'get started with redux' thing and end up with a root reducer that uses combineReduce
by darklajid 11y ago
Wait - we're talking about the result of the combination?
If you follow a 'get started with redux' thing and end up with a root reducer that uses combineReducers: You're talking about the outermost 'state' object? Because any reducer that you write can certainly accept/understand/return immutables, right?
If I picked that up correctly: Is that a problem for a single combineReducers at the root? Because if all the properties of that thing are immutable, wouldn't you get the cheap identity based comparison benefits whenever you pass on props.foo in your store-aware component?
- danmaz74 11y agoYes, it's the actual combiner that can't create an Immutable object.