diff --git a/src/component/component.ts b/src/component/component.ts index d764f1da..95dcba0b 100644 --- a/src/component/component.ts +++ b/src/component/component.ts @@ -306,9 +306,9 @@ export class Component { if (shouldPatch) { patchQueue = []; } - const renderVDom = this.__render(force, patchQueue, scope, vars); + __owl__.renderId++ const renderId = __owl__.renderId; - await renderVDom; + await this.__render(force, patchQueue, scope, vars); if (shouldPatch && __owl__.isMounted && renderId === __owl__.renderId) { // we only update the vnode and the actual DOM if no other rendering @@ -523,7 +523,6 @@ export class Component { vars?: any ): Promise { const __owl__ = this.__owl__; - __owl__.renderId++; const promises: Promise[] = []; const patch: any[] = [this]; if (__owl__.isMounted) {