tnfe / limu

High performance immutable lib alternative to immer with the same api, based on shallow copy on read and mark modified on write mechanism.
https://tnfe.github.io/limu
MIT License
220 stars 13 forks source link

limu在react useState的更新中作为新值传递无效,额外的useState触发更新后才触发视图更新 #1

Closed itmanyong closed 3 years ago

itmanyong commented 3 years ago

如图所示:useLimu的更新不起作用,且在非useLimu的更新触发更新后,useLimu之前的更新才会在视图上呈现最新的值 image

fantasticsoul commented 3 years ago

fixed in 1.09