Michael Lin
Michael Lin
If we were to implement a simple draft WeakMap cache, then indeed, the read performance could be improved by about 40%. I am currently considering whether to implement such an...
In the same code example, I implemented a pure object tree based on deep Proxies, which still performs slowly without any other draft code involved. It possibly executed the Proxy...
hi @bfelbo , the `current()` function returns the current state of a modified draft. - For any draft where a child node has been modified, the state obtained by executing...
You can find more documentation on the `current()` API [here](https://mutative.js.org/docs/api-reference/current).
hi @bfelbo , based on the implementation of this PR(https://github.com/unadlib/mutative/pull/42), the performance comparison is as follows. Before ``` RAW : 5000 iterations @13ms (0.0026 per loop) RAW+COPY: 5000 iterations @231ms...
We have released Mutative v1.0.6. Feel free to use it.
How do you feel about adding such an API for quickly migrating from Immer to Mutative? ```diff - import { produce } from "immer"; + import { produce } from...
hi @exuanbo , it might be possible to implement a migration API similar to `mutative-compat` in Mutative. What are your thoughts on this?
@exuanbo I'll probably be working on the proposal using `mutative-compat` over the next few days. If you've got any thoughts or feedback, don't hesitate to reach out anytime.
Here are some examples, such as updating an array (filter out items where the name is not 'Test', and set the 'done' value to true for each of the remaining...