Skip to content

Commit

Permalink
feat(cientos): getting app from getCurrentInstance 🤩
Browse files Browse the repository at this point in the history
  • Loading branch information
alvarosabu committed Dec 6, 2022
1 parent fcfbce9 commit f899977
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/cientos/src/core/useCientos.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import { useCatalogue } from '@tresjs/core'
import { getCurrentInstance } from 'vue'

export function useCientos() {
const { catalogue, extend } = useCatalogue(window.__TRES__.app)
const { appContext } = getCurrentInstance()
const { catalogue, extend } = useCatalogue(appContext.app)

return {
catalogue,
Expand Down

0 comments on commit f899977

Please sign in to comment.