-
Notifications
You must be signed in to change notification settings - Fork 806
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
completeUnitOfWork 中 if 条件的含义 #70
Comments
当 completedWork.flags 的值表示还有“副作用”存在的话进入下一个循环查找该“副作用”存在于哪个Fiber 上并进行相应的增删改查处理。 |
这里确切来讲是异常判断, 可以对照一下源码中的英文注释 |
beginWork 阶段的异常情况指的是 “并没有把该 fiber 节点的所有副作用都设置到 fiber.flags 上” ? |
异常就是指出现了代码运行时错误, 会设置 |
根本原因还是 报错影响了 fiber 树的构建吧? |
是的呀 |
Incomplete 目前看有 2 个情况会使用到:一个 ErrorBoundary,另一个 Suspense |
这里的 if 条件含义是什么?
The text was updated successfully, but these errors were encountered: