mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-28 08:45:31 +00:00
16 lines
309 B
Vue
16 lines
309 B
Vue
<script setup lang="ts">
|
|
const pr = new Promise((resolve) => { setTimeout(resolve, 500) })
|
|
const prImmediate = Promise.resolve(42)
|
|
</script>
|
|
|
|
<template>
|
|
<div>
|
|
<LazyDelayedPromise
|
|
:hydrate:promise="pr"
|
|
/>
|
|
<LazyDelayedPromise
|
|
:hydrate:promise="prImmediate"
|
|
/>
|
|
</div>
|
|
</template>
|