[FIX] component: better heuristic to determine if was mounted

This commit is contained in:
Géry Debongnie
2019-08-22 14:55:31 +02:00
parent a621a14028
commit e690991a6a
+1 -1
View File
@@ -273,7 +273,7 @@ export class Component<T extends Env, Props extends {}, State extends {}> {
if (this.__owl__.isMounted) {
return;
}
if (this.__owl__.renderId === 1) {
if (!this.__owl__.vnode ) {
// we use the fact that renderId === 1 as a way to determine that the
// component is mounted for the first time
const vnode = await this.__prepare();