[FIX] component: prevent rendering if not mounted

This commit is contained in:
Géry Debongnie
2019-05-06 13:45:50 +02:00
parent dfab8c7333
commit 91896942dd
2 changed files with 13 additions and 2 deletions
+1 -1
View File
@@ -238,7 +238,7 @@ export class Component<
}
async render(force: boolean = false, patchQueue?: any[]): Promise<void> {
if (this.__owl__.isDestroyed) {
if (!this.__owl__.isMounted) {
return;
}
const shouldCallPatchHooks: boolean = !patchQueue;