Nuxt/test/fixtures/basic/pages/lazy-import-components/promise.vue

16 lines
307 B
Vue
Raw Normal View History

<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>