Nuxt/test/fixtures/basic/plugins/context-error.ts

10 lines
199 B
TypeScript
Raw Normal View History

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