[FIX] component, error_handling: do not cancel the error fiber twice

This commit is contained in:
Lucas Perais (lpe)
2022-01-19 12:09:14 +01:00
committed by Aaron Bohy
parent dfd0dcedb8
commit a2e8abc243
3 changed files with 118 additions and 1 deletions
+1 -1
View File
@@ -29,7 +29,7 @@ function _handleError(node: ComponentNode | null, error: any, isFirstRound = fal
}
if (stopped) {
if (isFirstRound && fiber) {
if (isFirstRound && fiber && fiber.node.fiber) {
fiber.root!.counter--;
}
return true;