关于如何区分更新与初始化过程是说法,个人感觉有误
nisandaye opened this issue · comments
Carey commented
源码中是通过current的alternate属性判断workInProgress是否为null。而不是current是否为空吧?
neroneroffy commented
源码中是通过current的alternate属性判断workInProgress是否为null。而不是current是否为空吧?
您说的是beginWork那里吗?