[FIX] component: fix issue with crash caused by async rendering

This may (or may not?) closes #85
This commit is contained in:
Géry Debongnie
2019-05-06 14:23:29 +02:00
parent 91896942dd
commit ba506be58d
3 changed files with 56 additions and 2 deletions
+2 -1
View File
@@ -248,7 +248,8 @@ export class Component<
const renderVDom = this._render(force, patchQueue);
const renderId = this.__owl__.renderId;
const vnode = await renderVDom;
if (renderId === this.__owl__.renderId) {
if (this.__owl__.isMounted && renderId === this.__owl__.renderId) {
// we only update the vnode and the actual DOM if no other rendering
// occurred between now and when the render method was initially called.
if (shouldCallPatchHooks) {