4 ms·
I would recommend immer (https://github.com/mweststrate/immer https://github.com/mweststrate/immer) instead of ImmutableJS. You can work with regular JS objects
by realharo 8y ago
I would recommend immer (https://github.com/mweststrate/immer https://github.com/mweststrate/immer) instead of ImmutableJS. You can work with regular JS objects, plus it plays much nicer with TypeScript.
- benvan 8y agoI wrote a tiny library called fn-update for this that does composable functional updates (https://github.com/benvan/fn-update https://github.com/benvan/fn-update). Personally, I prefer not having to mutate data, even wrapped in a produce method
- realharo 8y agoHaving to specify the path using an array of strings would be an instant dealbreaker for me. It messes with all tooling and is bad for readability.