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