react-source-code-debug
react-source-code-debug copied to clipboard
关于如何区分更新与初始化过程是说法,个人感觉有误
源码中是通过current的alternate属性判断workInProgress是否为null。而不是current是否为空吧?
源码中是通过current的alternate属性判断workInProgress是否为null。而不是current是否为空吧?
您说的是beginWork那里吗?