fix(hydrate): check for client runtime method (#18866)

This commit is contained in:
Adam Bradley
2019-07-23 16:11:29 -05:00
committed by GitHub
parent 23ce6fae9e
commit c52b3b4997

View File

@ -225,6 +225,7 @@ export class StackController {
containerEl.appendChild(enteringEl); containerEl.appendChild(enteringEl);
} }
if ((containerEl as any).commit) {
return containerEl.commit(enteringEl, leavingEl, { return containerEl.commit(enteringEl, leavingEl, {
deepWait: true, deepWait: true,
duration: direction === undefined ? 0 : undefined, duration: direction === undefined ? 0 : undefined,
@ -233,6 +234,7 @@ export class StackController {
progressAnimation progressAnimation
}); });
} }
}
return Promise.resolve(false); return Promise.resolve(false);
} }