mirror of
https://github.com/nuxt/nuxt.git
synced 2024-12-05 20:07:16 +00:00
15 lines
346 B
Vue
15 lines
346 B
Vue
<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>
|