diff --git a/src/core/drive/visit.js b/src/core/drive/visit.js index 132819507..3adad253c 100644 --- a/src/core/drive/visit.js +++ b/src/core/drive/visit.js @@ -84,6 +84,7 @@ export class Visit { this.snapshotHTML = snapshotHTML this.response = response this.isSamePage = this.delegate.locationWithActionIsSamePage(this.location, this.action) + this.isPageRefresh = this.view.isPageRefresh(this) this.visitCachedSnapshot = visitCachedSnapshot this.willRender = willRender this.updateHistory = updateHistory @@ -249,7 +250,7 @@ export class Visit { const isPreview = this.shouldIssueRequest() this.render(async () => { this.cacheSnapshot() - if (this.isSamePage) { + if (this.isSamePage || this.isPageRefresh) { this.adapter.visitRendered(this) } else { if (this.view.renderPromise) await this.view.renderPromise diff --git a/src/tests/fixtures/one.html b/src/tests/fixtures/one.html index 3434d3601..5e3537c46 100644 --- a/src/tests/fixtures/one.html +++ b/src/tests/fixtures/one.html @@ -14,6 +14,7 @@