immerjs/immer
View on GitHub ↗ ★ 29,000 JavaScript
Create the next immutable state by mutating the current one
28 mentions on Hacker News by 22 people: 3 stories, 25 comments · first 2018-01-01 · latest 2025-12-25
20082026
-
…and used a benchmarking tool called `mitata`, so I was doing a lot of this same kind of work: https://github.com/immerjs/immer/pull/1183 . Would love to add some new tools to my repertoire here!)
comment by acemarke · 2025-12-25 · in Python 3.15’s interpreter for Windows x86-64 should hopefully be 15% faster -
…the hood. Cami supports redux devtools so you can use that for time-travel debugging too. —- * https://github.com/immerjs/immer
comment by kennyfrc · 2023-11-04 · in Show HN: Cami.js – A no build, web component based reactive framework -
I like immer for this kind of thing: https://github.com/immerjs/immer You can do immutable transformations without getting bogged down in FP abstractions.
comment by danenania · 2023-08-04 · in Ramda: A practical functional library for JavaScript programmers -
…as examples! [1]: https://github.com/yjs/yjs [2]: https://github.com/dmonad/crdt-benchmarks [3]: https://github.com/immerjs/immer [4]: https://mobx.js.org/
comment by YousefED · 2021-12-08 · in Show HN: SyncedStore CRDT – build multiplayer collaborative apps for React / Vue -
…is slower and copies tree nodes whenever that node's refcount is greater than 1. immer.js ( https://github.com/immerjs/immer ) has a somewhat similar API, but a different implementation (I think it uses standard JS arrays and copies the…
comment by nyanpasu64 · 2021-11-30 · in 4x Smaller, 50x Faster -
Also see Immer Js https://github.com/immerjs/immer
comment by iamuser7 · 2020-11-20 · in TypeScript 4.1 -
…solution than redux-toolkit's abstractions. [1]: https://github.com/redux-loop/redux-loop [2]: https://github.com/immerjs/immer [3]: https://www.npmjs.com/package/unionize
comment by lf-non · 2020-08-04 · in Learn Functional Programming Design from Redux -
From using immer[1], I learned about Object.freeze(), which immer uses under the hood. [1] https://github.com/immerjs/immer
comment by DylanSp · 2020-06-17 · in Deep JavaScript: Theory and Techniques -
…is in practice in JS... [1] https://github.com/skypjack/entt/wiki/Crash-Course:-entity-c... [2] https://github.com/immerjs/immer
comment by avolcano · 2020-05-09 · in EnTT: Gaming meets Modern C++ -
I haven't heard about timm before, but it looks very similar to immer https://github.com/immerjs/immer , which is even recommended in the official React docs now
comment by Ineentho · 2019-12-12 · in Thinking in React Hooks -
Ironically, there's a name clash with a fairly popular immutable update library for JS: https://github.com/immerjs/immer Looks like the C++ one started first (2016-05 vs 2017-12).
comment by acemarke · 2019-09-12 · in Immer is a library of persistent and immutable data structures written in C++ -
Another one that I personally prefer is Immer.js[0] [0] - https://github.com/immerjs/immer
comment by Accacin · 2019-08-01 · in What’s New in ES2019 -
…in your reducers [2]. [0] https://www.reddit.com/r/javascript/comments/4rcqpx/dan_abra... [1] https://github.com/immerjs/immer [2] https://redux-starter-kit.js.org/
comment by acemarke · 2019-05-23 · in JavaScript Array.push is 945x faster than Array.concat -
…And using it with Redux is natural [1], removing the need to do a bunch of nested object copies [0] https://github.com/immerjs/immer [1] https://daveceddia.com/react-redux-immutability-guide/#easy-...
comment by thatswrong0 · 2019-05-13 · in Why I don't use React -
…The community has also created various "why did you update?" libs that log unnecessary renders. [0] https://github.com/mweststrate/immer [1] https://reactjs.org/blog/2018/09/10/introducing-the-react-pr... [2]…
comment by acemarke · 2019-04-23 · in Svelte 3: Rethinking Reactivity -
…interesting, and a reversal of the traditional "functional core, imperative shell" architecture. https://github.com/immerjs/immer
comment by revvx · 2019-04-22 · in Svelte 3: Rethinking Reactivity -
…libraries that use Proxies to great effect are the https://github.com/mobxjs/mobx-state-tree and https://github.com/mweststrate/immer libraries both by mweststrate
comment by benjaminjackman · 2019-01-21 · in Meta Programming in JavaScript with Proxies -
…a `DeepReadOnly` tag to its typings in a patch release, which broke things for a bunch of people: https://github.com/mweststrate/immer/issues/289 This specifically broke our PR to convert `redux-starter-kit` to TS, with this lovely error…
comment by acemarke · 2019-01-15 · in Porting 30K lines of code from Flow to TypeScript -
…to have custom types. I think I'll use Immer most of the time after implementing api like [1] [1] https://github.com/mweststrate/immer/issues/202
comment by yatsyk · 2018-12-11 · in The Rise of Immer in React -
I would recommend immer ( https://github.com/mweststrate/immer ) instead of ImmutableJS. You can work with regular JS objects, plus it plays much nicer with TypeScript.
comment by realharo · 2018-11-13 · in Copying objects in JavaScript -
…[4] https://github.com/markerikson/redux-ecosystem-links/blob/ma... [5] https://github.com/mweststrate/immer [6] https://github.com/keajs/kea , https://github.com/rematch/rematch
comment by acemarke · 2018-06-19 · in React Native at Airbnb -
Cool. I was seeing source of inner js, which in deed uses proxies to create structural sharing. https://github.com/mweststrate/immer
comment by antoaravinth · 2018-05-19 · in Proxy, a new JavaScript ES6 feature -
…but all changes are proxied to a copy, which is then returned as a result of your mutations. [0]: https://github.com/mweststrate/immer
comment by m0meni · 2018-04-06 · in Immutable.rs: immutable data structures for Rust -
…[2] https://github.com/markerikson/redux-ecosystem-links/blob/ma... [3] https://github.com/mweststrate/immer/
comment by acemarke · 2018-01-25 · in Deep-copying in JavaScript