the second param of useEffect is invalid.
BetaSu opened this issue · comments
卡颂 commented
This is React:
https://codepen.io/anon/pen/rEJgMJ?editors=0011
This is Anujs:
https://codepen.io/anon/pen/OeQYzX?editors=0011
You can see , useEffect 's first param is called everytime when state change in Anujs.
version: 1.5.3
Austin Lee commented
anu/packages/fiber/dispatcher.js
Lines 56 to 63 in 4ca7bcc
It seems the problem is callback returned and push to update list array when prevDeps equals to nextDeps.