mirror of
https://github.com/ArthurDanjou/trpc-nuxt.git
synced 2026-01-24 17:00:32 +01:00
refactor: plugin arrangement
This commit is contained in:
@@ -58,3 +58,8 @@ export async function useAsyncQuery<
|
||||
error: serverError,
|
||||
} as any
|
||||
}
|
||||
|
||||
export function useClient() {
|
||||
const { $client } = useNuxtApp()
|
||||
return $client
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user