feat: import vue functions from #imports

This commit is contained in:
wobsoriano
2022-11-04 07:49:37 -07:00
parent c1ab3ecf77
commit d6012eb5c8
2 changed files with 2 additions and 3 deletions

View File

@@ -5,11 +5,10 @@ import type {
} from '@trpc/server'
import { createFlatProxy, createRecursiveProxy } from '@trpc/server/shared'
import { hash } from 'ohash'
import { getCurrentInstance, onScopeDispose } from 'vue'
import { nanoid } from 'nanoid'
import type { DecoratedProcedureRecord } from './types'
// @ts-expect-error: Nuxt auto-imports
import { useAsyncData } from '#imports'
import { useAsyncData, getCurrentInstance, onScopeDispose } from '#imports'
/**
* Calculates the key used for `useAsyncData` call