use-immer icon indicating copy to clipboard operation
use-immer copied to clipboard

Use immer to drive state with a React hooks

Results 34 use-immer issues
Sort by recently updated
recently updated
newest added

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...

dependencies

i just see the message form issue #98 , the version code and tag cofusing me too i create to PR, fix missing version code commit "v0.7.0" and i will...

I think this one might be a bit obscure, and there's a few workarounds, but it appears to be a newly introduced bug so thought it might be important to...

```log npm ERR! Found: [email protected] npm ERR! node_modules/react npm ERR! react@"^18.0.0" from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer react@"^16.8.0 || ^17.0.1" from...

For modern Node.js and TypeScript…

This seems to have been ignored for a few releases. Any chance on updating it to make upgrading versions simpler?

``` index.js:1437 ./node_modules/[email protected]@use-immer/dist/use-immer.module.js Attempted import error: 'freeze' is not exported from 'immer' (imported as 'r'). ```

Bumps [immer](https://github.com/immerjs/immer) from 9.0.0 to 9.0.6. Release notes Sourced from immer's releases. v9.0.6 9.0.6 (2021-08-31) Bug Fixes security: Follow up on CVE-2020-28477 where path: [["__proto__"], "x"] could still pollute the...

dependencies

I rethought this issue #91, and found that this is not general enough. Here I suggest a more general solution that can be applied to arbitrary disjoint union type state...

Sometimes I use nullable state with `useImmer`, like following example. ```typescript type Dog = { name: string, age: number, }; function SomeComponent() { const [dog, updateDog] = useImmer(null); return (...