[FIX] remove cyclic dependency, improve error typing (#982)

This commit is contained in:
Géry Debongnie
2021-11-18 10:44:49 +01:00
committed by GitHub
parent c2284bc6f5
commit 93b53d8017
3 changed files with 15 additions and 18 deletions
+2 -2
View File
@@ -159,7 +159,7 @@ export class RootFiber extends Fiber {
// unregistering the fiber
node.fiber = null;
} catch (e) {
if (!handleError(current || this, e)) {
if (!handleError({ fiber: current || this, error: e })) {
this.reject(e);
}
}
@@ -206,7 +206,7 @@ export class MountFiber extends RootFiber {
}
node.fiber = null;
} catch (e) {
if (!handleError(current as Fiber, e)) {
if (!handleError({ fiber: current as Fiber, error: e })) {
this.reject(e);
}
}