Michael Lin

Results 77 comments of Michael Lin

@phryneas @markerikson Mutative v0.3.2 already supports returning values in the draft functions. It is already fully compliant with `produce` interface in `redux-toolkit` and maintains good performance.

> @unadlib : nice! > > One other question that came up is that we use several of Immer's utilities like `isDraft` and `isDraftable`, in order to check whether it's...

> I rebased this branch against `v2.0-integration`. > > Also, for kicks, I tried swapping all our usages of Immer to use Mutative instead. Unfortunately, there's several critical test failures,...

> I rebased this branch against `v2.0-integration`. > > Also, for kicks, I tried swapping all our usages of Immer to use Mutative instead. Unfortunately, there's several critical test failures,...

> Hmm. That definitely makes it harder to use `mutative` as a drop-in replacement, because we don't know ahead of time what users are going to do in their reducers....

@markerikson I have refactored the implementation of the return value, once you upgrade to mutative v0.5.0, you will migrate Immer to Mutative smoothly, the relevant tests have passed. The details...

Hi, I'm not sure if there are any next steps planned for this proposal. Currently, the performance test information related to Immer and Mutative is as follows: - [https://github.com/instantdb/instant/pull/243](https://github.com/instantdb/instant/pull/243) -...