Skip to content

Commit

Permalink
fix(composables): useApplication passed down is invalid (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mr.Mao committed May 9, 2023
1 parent a5d1f2d commit 82ccfbb
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/components/stage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ const Stage = defineComponent({
app = createApp({
render: () => renderSlot(slots, 'default'),
})

app.provide(applicationInjectionKey, pixiApp)
app.mount(pixiApp.value.stage)
}

Expand All @@ -84,8 +84,6 @@ const Stage = defineComponent({
throttle(50, resize),
)

provide(applicationInjectionKey, pixiApp)

onMounted(mount)

onUnmounted(unmount)
Expand Down

0 comments on commit 82ccfbb

Please sign in to comment.