Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

limu的array.forEach方法貌似未生效???!! #2

Closed
itmanyong opened this issue Jul 19, 2021 · 9 comments
Closed

limu的array.forEach方法貌似未生效???!! #2

itmanyong opened this issue Jul 19, 2021 · 9 comments

Comments

@itmanyong
Copy link

itmanyong commented Jul 19, 2021

image

复现链接:
https://codesandbox.io/s/lucid-water-nct7x

难道是因为limu外层引用未变,react的更新检查策略未到深层变化?

@fantasticsoul
Copy link
Member

升级到 1.0.11, bug已fix,感谢关注

@itmanyong
Copy link
Author

itmanyong commented Jul 20, 2021

升级到1.0.11,bug已修复,感谢关注

不知道是不是写法的问题,sandbox中升级1.0.11后仍然未生效,甚至count的变化也不能触发被produce的数据更新视图

@fantasticsoul
Copy link
Member

遗漏了一个场景已fix,更新到 1.0.12即可,同时推荐把代码改为如下格式,更方便测试

o.name = "王二麻子" + Date.now();

同时更新了测试用例
https://github.com/tnfe/limu/blob/main/test/array-other/object-item-3.ts

欢迎fork源码补充,更多测试用例

@itmanyong
Copy link
Author

遗漏了一个场景已修复,更新到1.0.12目录,同时推荐把代码改为格式,更方便测试

哦。name  =  "王二麻子"  +  Date .现在( ) ;

同时更新了测试用例
https://github.com/tnfe/limu/blob/main/test/array-other/object-item-3.ts

欢迎fork源码,补充更多测试用例

主要是为了批量更新,感谢!早已fork

@fantasticsoul
Copy link
Member

好的,😀

@fantasticsoul
Copy link
Member

欢迎发现更多的问题,我努力争取早日发布稳定版本 1.1.0

@itmanyong
Copy link
Author

欢迎发现更多的问题,我努力争取早日发布稳定版本 1.1.0

打包后的数据修改日志还在~~~

@fantasticsoul
Copy link
Member

好的我把多余的日志关掉

@fantasticsoul
Copy link
Member

fantasticsoul commented Jul 23, 2021

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants