Skip to content

Commit

Permalink
Revert "chore: fix lint"
Browse files Browse the repository at this point in the history
This reverts commit a144712.
  • Loading branch information
alvarosabu committed Sep 11, 2023
1 parent 0d6011d commit f53fba9
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions src/components/TresCanvas.vue
Original file line number Diff line number Diff line change
Expand Up @@ -83,21 +83,13 @@ const slots = defineSlots<{
default(): any
}>()
const instance = getCurrentInstance()!
const instance = getCurrentInstance()?.appContext.app
const createInternalComponent = (context: TresContext) =>
defineComponent({
setup() {
const inner = getCurrentInstance()!
inner.appContext.app = instance.appContext.app
//@ts-expect-error: internal property
Object.assign(inner.provides, inner.appContext.provides)
if (import.meta.env.DEV) {
//@ts-expect-error: internal property
inner.appContext.reload = () => {
mountCustomRenderer(context)
}
}
const ctx = getCurrentInstance()?.appContext
if (ctx) ctx.app = instance as App
provide('useTres', context)
provide('extend', extend)
return () => h(Fragment, null, slots?.default ? slots.default() : [])
Expand Down

0 comments on commit f53fba9

Please sign in to comment.