Closed xaviergonz closed 5 years ago
and if it returns something it throws (or does nothing) return void gets old quickly
I think it in it's current form, it would make this approach slightly different from how normal immer producers look, making it confusing.
That being said, this proposal is quite similar to https://github.com/mweststrate/immer/issues/246, which introduces a replace
api, and I think we can continue the discussion there :)
what about something like this instead?