clean console logs

This commit is contained in:
Ulf Gebhardt 2023-11-23 17:08:41 +01:00
parent e97b8133de
commit a9bc47ed60
Signed by: ulfgebhardt
GPG Key ID: DA6B843E748679C9

View File

@ -8,24 +8,18 @@ async function render(pageContext: VikePageContext & PageContext) {
app = createApp(pageContext) app = createApp(pageContext)
app.mount('#app') app.mount('#app')
} else { } else {
// console.log(pageContext)
app.changePage(pageContext) app.changePage(pageContext)
} }
} }
function onHydrationEnd() { function onHydrationEnd() {
// eslint-disable-next-line no-console // console.log('Hydration finished; page is now interactive.')
console.log('Hydration finished; page is now interactive.')
} }
function onPageTransitionStart() { function onPageTransitionStart() {
// eslint-disable-next-line no-console // console.log('Page transition start')
console.log('Page transition start')
// document.querySelector('.content')!.classList.add('page-transition')
} }
function onPageTransitionEnd() { function onPageTransitionEnd() {
// eslint-disable-next-line no-console // console.log('Page transition end')
console.log('Page transition end')
// document.querySelector('.content')!.classList.remove('page-transition')
} }
export const clientRouting = true export const clientRouting = true