1
0
mirror of https://github.com/nuxt/nuxt.git synced 2025-03-01 19:03:26 +00:00
Nuxt/test/fixtures/basic/plugins/context-error.ts

10 lines
197 B
TypeScript

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