immer icon indicating copy to clipboard operation
immer copied to clipboard

Create the next immutable state by mutating the current one

Results 131 immer issues
Sort by recently updated
recently updated
newest added

## 🐛 Bug Report When adding to a Set with `produce`, the insertion order is not maintained when the original Set contains a draftable object. ## Link to repro See...

bug

## 🐛 Bug Report When using nested and chained `produce` calls, when a property is copied from a child object to the parent, immer throws an error when accessing the...

## 🐛 Bug Report Immer takes a long time to update the data. ## Link to repro ![image](https://user-images.githubusercontent.com/6167727/140600251-8f558966-2b70-45ad-96b3-7463959f5d89.png) ## To Reproduce Chrome console: ```js console.time('create'); const dataSource = Object.fromEntries( [...Array(4000).keys()].map((key)...

PR welcome
complexity-medium

Bumps [shell-quote](https://github.com/substack/node-shell-quote) from 1.7.2 to 1.7.3. Changelog Sourced from shell-quote's changelog. 1.7.3 Fix a security issue where the regex for windows drive letters allowed some shell meta-characters to escape the...

dependencies

Bumps [semantic-release](https://github.com/semantic-release/semantic-release) from 17.2.3 to 19.0.3. Release notes Sourced from semantic-release's releases. v19.0.3 19.0.3 (2022-06-09) Bug Fixes log-repo: use the original form of the repo url to remove the need...

dependencies

## 🐛 Bug Report When using currying, `produce` doesn't return the original type ## Link to repro https://codesandbox.io/s/immer-sandbox-forked-342jd?file=/src/index.ts ## To Reproduce Use `produce` function without data and check the return...

typescript

Bumps [eventsource](https://github.com/EventSource/eventsource) from 1.0.7 to 1.1.1. Changelog Sourced from eventsource's changelog. 1.1.1 Do not include authorization and cookie headers on redirect to different origin (#273 Espen Hovlandsdal) 1.1.0 Improve performance...

dependencies

## 🐛 Bug Report I'm using immer in a TypeScript project together with the [type-fest](https://github.com/sindresorhus/type-fest) library. `type-fest` got updated to `2.0.0` recently and since then the `produce` method throws the...

released
typescript

## 🙋‍♂ Question I have [asked this question on StackOverflow](https://stackoverflow.com/questions/72327676/immer-js-typescript-how-to-write-a-typed-query-function/72327792?noredirect=1#comment127780855_72327792 ), but didn't get much of a response, so I thought I'd try here. Consider the following Typescript code: ```ts...

question