3 ms·
Actually the reason I was willing to take a chance on Immer is because it's included in redux starter kit. :) Using immer in production has been about 1000x be
by pault 8y ago
Actually the reason I was willing to take a chance on Immer is because it's included in redux starter kit. :)
Using immer in production has been about 1000x better than writing immutable state updates by hand. It literally reduced (hah) the LOC in our reducers by at least 75%, not to mention the gains from reduced cognitive overhead.
The architecture I ended up using is basically a recreation of redux starter kit with some customization for convenience (a couple of methods on action creators that wrap `toString` for creating reducer keys that only handle actions with certain meta properties, like `updateEntities.of(entity)`).
- acemarke 8y agoNeat! I'd be interested in seeing what you came up with if you get a chance.