react-source-code-debug icon indicating copy to clipboard operation
react-source-code-debug copied to clipboard

关于如何区分更新与初始化过程是说法,个人感觉有误

Open nisandaye opened this issue 2 years ago • 1 comments

源码中是通过current的alternate属性判断workInProgress是否为null。而不是current是否为空吧?

nisandaye avatar Nov 10 '21 13:11 nisandaye

源码中是通过current的alternate属性判断workInProgress是否为null。而不是current是否为空吧?

您说的是beginWork那里吗?

neroneroffy avatar Jun 02 '22 07:06 neroneroffy