mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-14 18:13:54 +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>
|