immer
immer copied to clipboard
Create the next immutable state by mutating the current one
``` h.createElement(mt,y({},t))},hq.create=function(){};var vq=hq,mq=Object.prototype.hasOwnProperty;function gq(e,t,n){for(n of e.keys())if(yq(n,t))return n}function yq ```
## 🙋♂ Question Similar to #869. Is it possible to add a callback or handler or mutated object when a draft is modified? The use-case is re-rendering a draft when...
Patches generated by the current implementation do not follow the RFC method for removing an element from an array (https://www.rfc-editor.org/rfc/rfc6902#page-13) and cannot be used from other languages (e.g., https://pypi.org/project/jsonpatch/).
1. Jimmer doc URL moved. 2. Kotlin is support, Now both Java and Kotlin can write immer style code. 3. Give example code and output
I just spent 2 hours chasing down a bug caused by autoFreeze being enabled by default. Immer is all about immutability, and it is really unexpected to pass an object...
## 🐛 Bug Report `applyPatches` throws error `Cannot apply patch, path doesn't resolve: map/1/b` when applying `inversePatches` generated by the following `produce` call: ```ts interface Test { a: number; b:...
Bumps [terser](https://github.com/terser/terser) from 4.8.0 to 4.8.1. Changelog Sourced from terser's changelog. v4.8.1 (backport) Security fix for RegExps that should not be evaluated (regexp DDOS) Commits See full diff in compare...
Bumps [terser](https://github.com/terser/terser) from 4.6.3 to 4.8.1. Changelog Sourced from terser's changelog. v4.8.1 (backport) Security fix for RegExps that should not be evaluated (regexp DDOS) v4.8.0 Support for numeric separators (million...
## 🚀 Feature Proposal Right now it's really hard to figure out how to properly type a producer function. It would be really nice if there was an easy `Producer`...
## 🙋♂ Question I'm trying to use `immer` in Vercel's Edge Functions (not directly but as a `redux-toolkit` dependency) and getting the following error: ``` ./node_modules/immer/dist/immer.esm.js Dynamic Code Evaluation (e....