mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-24 22:55:13 +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>
|