mutativejs / use-mutative

A 2-6x faster alternative to useState with spread operation.
MIT License
65 stars 2 forks source link

feat(use-mutative): upgrade mutative version to `0.4.2` #3

Closed ZouYouShun closed 1 year ago

unadlib commented 1 year ago

replaceResult = { . .result }; It looks like state must be a plain object.

unadlib commented 1 year ago

const nextState = create(reducer)(state) may be clearer.

ZouYouShun commented 1 year ago

replaceResult = { . .result }; It looks like state must be a plain object.

oh! that just example

ZouYouShun commented 1 year ago

const nextState = create(reducer)(state) may be clearer.

sorry for not found that comment, not sure what is that mean, still not released, we can update later.