[FIX] component: remove stale fiber in scheduler

Owl takes care of not rendering a component that will be unmounted
immediately after, and it works.  However, it also should clean
up the newly added fiber.
This commit is contained in:
Géry Debongnie
2019-11-20 10:43:46 +01:00
committed by aab-odoo
parent f44b9a38ae
commit 7749fd3b96
2 changed files with 3 additions and 0 deletions
+1
View File
@@ -340,6 +340,7 @@ export class Component<T extends Env, Props extends {}> {
// we were mounted when render was called, but we aren't anymore, so we
// were actually about to be unmounted ; we can thus forget about this
// fiber
fiber.isCompleted = true;
__owl__.currentFiber = null;
}
});