1
0
mirror of https://github.com/nuxt/nuxt.git synced 2025-03-02 11:42:43 +00:00
Nuxt/test/fixtures/basic/plugins/context-error.ts

10 lines
199 B
TypeScript

export default defineNuxtPlugin(() => {
// this should be undefined
const vueApp = getCurrentInstance()
return {
provide: {
wasVueAppInstanceWronglyPreserved: !!vueApp,
},
}
})