immer
immer copied to clipboard
Create the next immutable state by mutating the current one
Local search as been added. The CSS styles for the website have also been updated to improve the overall appearance and user experience. This includes changes to the color scheme,...
## 🙋♂ Question In the documentation React examples, event handler methods are wrapped in useCallback. I am not sure if this is strictly necessary, so I believe it would be...
immer use `Reflect.ownKeys` to loop all property and developer cannot do anything. can we support hooks during property and value edit? https://github.com/immerjs/immer/blob/e2d222bd4fb26abded04075c936290715e9ee335/src/utils/common.ts#L75 for example: ```js const child = { id:...
## 🐛 Bug Report Using generic function arguments around `produce` causes type issues. Its probably best explained with an example (link to CodeSandbox below): ```typescript enum Foo { One, Two,...
## 🙋♂ Proper Way To Get Current State What is the proper way of getting the current state with immer. Do you reassign the output of produce to the state...
## 🐛 Bug Report immer allows modification of `readonly` properties of nested class instances that are not marked as `immerable`. This seems dangerous to me. Just like immer does not...
## 🚀 Feature Proposal I use `import { produce } from 'immer'` in vite project. After building, `process.env.NODE_ENV` is still in my built file. ## Motivation Could `process.env.NODE_ENV` be removed...
## 🙋♂ Question How do I flag with modifier some of my properties in initial state for useImmerReducer without getting error. If I delete flag everything works, but I don't...
Hi! 👋 I was getting following error while doing build ``` ./node_modules/.pnpm/[email protected]/node_modules/immer/src/core/immerClass.ts:181:8 Type error: 'patch' is possibly 'undefined'. 179 | for (i = patches.length - 1; i >= 0; i--)...
Bumps [webpack](https://github.com/webpack/webpack) from 5.76.1 to 5.94.0. Release notes Sourced from webpack's releases. v5.94.0 Bug Fixes Added runtime condition for harmony reexport checked Handle properly data/http/https protocols in source maps Make...