mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-24 06:35:10 +00:00
c1ddb359e3
Co-authored-by: Damian Głowala <damian.glowala.rebkow@gmail.com>
16 lines
347 B
Vue
16 lines
347 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>
|