mirror of
https://github.com/nuxt/nuxt.git
synced 2024-12-05 03:47:12 +00:00
23 lines
371 B
Vue
23 lines
371 B
Vue
|
<script setup lang="ts">
|
||
|
onPrehydrate(() => {
|
||
|
// This is guaranteed to run before Nuxt hydrates
|
||
|
console.log(window)
|
||
|
})
|
||
|
|
||
|
onPrehydrate((el) => {
|
||
|
console.log(el.outerHTML)
|
||
|
})
|
||
|
onPrehydrate((el) => {
|
||
|
console.log(el.outerHTML)
|
||
|
})
|
||
|
onPrehydrate((el) => {
|
||
|
console.log('other', el.outerHTML)
|
||
|
})
|
||
|
</script>
|
||
|
|
||
|
<template>
|
||
|
<div>
|
||
|
onPrehydrate testing
|
||
|
</div>
|
||
|
</template>
|