Hacker GitHub

← All repos

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

Mentions per year 28 mentions · busiest year 2018 (9)
20082026
  1. …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!)
  2. …the hood. Cami supports redux devtools so you can use that for time-travel debugging too. —- * https://github.com/immerjs/immer
  3. 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.
  4. …and propagate that to any observing components. Perhaps Haskell needs something similar. [0] https://github.com/immerjs/immer
    comment by cercatrova · 2022-06-27 · in Lenses
  5. …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/
  6. …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
  7. Also see Immer Js https://github.com/immerjs/immer
    comment by iamuser7 · 2020-11-20 · in TypeScript 4.1
  8. …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
  9. 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
  10. …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++
  11. 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
  12. 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).
  13. 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
  14. …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/
  15. …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
  16. …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
  17. …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
  18. …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
  19. …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…
  20. …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
  21. 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
  22. …[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
  23. 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
  24. …but all changes are proxied to a copy, which is then returned as a result of your mutations. [0]: https://github.com/mweststrate/immer
  25. …[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