mirror of
https://github.com/nuxt/nuxt.git
synced 2024-12-05 03:47:12 +00:00
16 lines
307 B
Vue
16 lines
307 B
Vue
<script setup lang="ts">
|
|
const pr = new Promise((resolve) => { setTimeout(resolve, 500) })
|
|
const prImmediate = Promise.resolve(42)
|
|
</script>
|
|
|
|
<template>
|
|
<div>
|
|
<LazyPromiseDelayedPromise
|
|
:hydrate="pr"
|
|
/>
|
|
<LazyPromiseDelayedPromise
|
|
:hydrate="prImmediate"
|
|
/>
|
|
</div>
|
|
</template>
|