Skip to content

Commit

Permalink
fix: revert object assign usage for setting app in appContext
Browse files Browse the repository at this point in the history
  • Loading branch information
alvarosabu committed Sep 11, 2023
1 parent f745c75 commit 889e022
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/components/TresCanvas.vue
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,7 @@ const createInternalComponent = (context: TresContext) =>
defineComponent({
setup() {
const inner = getCurrentInstance()!
Object.assign(inner.appContext.app, instance.appContext.app)
inner.appContext.app = instance.appContext.app
//@ts-expect-error: internal property
Object.assign(inner.provides, inner.appContext.provides)
if (import.meta.env.DEV) {
Expand Down

0 comments on commit 889e022

Please sign in to comment.