This repository has been archived by the owner on Mar 7, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 364
useEffect合并更新问题 #1633
Labels
bug
Something isn't working
Comments
正常情况下,点击时间出发之后console.log(1)应该触发一次,但是在remax框架下,同样的写法会触发2次。 |
noyobo
pushed a commit
that referenced
this issue
Jul 4, 2021
yesmeck
pushed a commit
that referenced
this issue
Jul 6, 2021
* feat: 生命周期 & 交互事件支持合并更新 close #1633 * test: batchedUpdates * chore: update yarn.lock * fix: type * test: update Co-authored-by: 农有宝 <[email protected]>
Closed
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
bug 描述
在react库中 useEffect第二个参数的条件执行,多个值发生变更时会进行合并,但是在当前框架下,当多个值发生变更时,是分开执行的,并没有合并。与常规react的使用不一致
复现步骤
开发工具上照片中的demo,标签替换为小程序的View标签,即可复现。
期望结果
与正常使用react写法结果保持一致。
复现代码
[请提供一个可复现问题的代码仓库]
版本信息:
其他信息
![image](https://user-images.githubusercontent.com/17402175/123613835-5cb2fe00-d836-11eb-9fe9-786da55bafa2.png)
The text was updated successfully, but these errors were encountered: