Skip to content

Commit

Permalink
fixed bad merge
Browse files Browse the repository at this point in the history
  • Loading branch information
joetannenbaum committed Jan 10, 2025
1 parent b0bd53b commit 5454328
Showing 1 changed file with 4 additions and 19 deletions.
23 changes: 4 additions & 19 deletions packages/core/src/page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,6 @@ class CurrentPage {
this.page = page
this.cleared = false

this.page = page
this.cleared = false

if (isNewComponent) {
this.fireEventsFor('newComponent')
}
Expand All @@ -87,23 +84,11 @@ class CurrentPage {
Scroll.reset()
}

if (this.isFirstPageLoad) {
this.fireEventsFor('firstLoad')
}

this.isFirstPageLoad = false

return this.swap({ component, page, preserveState }).then(() => {
if (!preserveScroll) {
Scroll.reset()
}
eventHandler.fireInternalEvent('loadDeferredProps')

eventHandler.fireInternalEvent('loadDeferredProps')

if (!replace) {
fireNavigateEvent(page)
}
})
if (!replace) {
fireNavigateEvent(page)
}
})
})
})
Expand Down

0 comments on commit 5454328

Please sign in to comment.