Skip to content

Commit

Permalink
chore: fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
alvarosabu committed Sep 11, 2023
1 parent 1fb06c2 commit a144712
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/components/TresCanvas.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ import type {
ShadowMapType,
ToneMapping,
} from 'three'
import type { Ref } from 'vue'
import type { Ref,
App } from 'vue'
import {
computed,
onMounted,
Expand All @@ -17,9 +18,8 @@ import {
watchEffect,
Fragment,
defineComponent,
h,
App,
getCurrentInstance
h,
getCurrentInstance,
} from 'vue'
import {
useTresContextProvider,
Expand Down Expand Up @@ -83,13 +83,13 @@ const slots = defineSlots<{
default(): any
}>()
const vueApp = getCurrentInstance()?.appContext.app
const vueApp = getCurrentInstance()?.appContext.app
const createInternalComponent = (context: TresContext) =>
defineComponent({
setup() {
const ctx = getCurrentInstance()?.appContext
if(ctx) ctx.app = vueApp as App
if (ctx) ctx.app = vueApp as App
provide('useTres', context)
provide('extend', extend)
return () => h(Fragment, null, slots?.default ? slots.default() : [])
Expand Down

0 comments on commit a144712

Please sign in to comment.