From 82ccfbbd3b2871b587f0199d942330ac5b0355f9 Mon Sep 17 00:00:00 2001 From: "Mr.Mao" <951416545@qq.com> Date: Tue, 9 May 2023 21:34:15 +0800 Subject: [PATCH] fix(composables): `useApplication` passed down is invalid (#11) --- src/components/stage.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/components/stage.ts b/src/components/stage.ts index 6e37a3f..f6ce42d 100644 --- a/src/components/stage.ts +++ b/src/components/stage.ts @@ -60,7 +60,7 @@ const Stage = defineComponent({ app = createApp({ render: () => renderSlot(slots, 'default'), }) - + app.provide(applicationInjectionKey, pixiApp) app.mount(pixiApp.value.stage) } @@ -84,8 +84,6 @@ const Stage = defineComponent({ throttle(50, resize), ) - provide(applicationInjectionKey, pixiApp) - onMounted(mount) onUnmounted(unmount)