Nuxt/test/fixtures/basic/pages/instance/next-request.vue

16 lines
347 B
Vue
Raw Normal View History

<script setup>
const nuxtApp = useNuxtApp()
await new Promise(resolve => setTimeout(resolve, 150))
const isSameApp = nuxtApp === useNuxtApp()
if (!isSameApp) {
throw new Error('💀')
}
</script>
<template>
<div>
This should be false: {{ $wasVueAppInstanceWronglyPreserved }}
This should be true: {{ isSameApp }}
</div>
</template>