Skip to content

Commit

Permalink
fix: check lifecycle comp. on same page navigation
Browse files Browse the repository at this point in the history
  • Loading branch information
jrandolf committed May 13, 2022
1 parent 785abf4 commit 6c86dd7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/common/LifecycleWatcher.ts
Expand Up @@ -225,7 +225,11 @@ export class LifecycleWatcher {

_checkLifecycleComplete(): void {
// We expect navigation to commit.
if (!checkLifecycle(this._frame, this._expectedLifecycle)) return;
if (
!this._hasSameDocumentNavigation &&
!checkLifecycle(this._frame, this._expectedLifecycle)
)
return;
this._lifecycleCallback();
if (
this._frame._loaderId === this._initialLoaderId &&
Expand Down

0 comments on commit 6c86dd7

Please sign in to comment.