Closed littlee closed 3 years ago
We don't support patches in use-immer, to keep the package minimal and because patches have some potential issues like running side effects as part of a state updater. It's recommended to build your own utility hook around immer instead (feel free to take the source of this package as a base, it is pretty minimal)
when using
use-immer
, I found that it no way to use the patches featurebut I don't really want to refactor all my
useImmer
touseState(produce)