use trpc url options in api

This commit is contained in:
Robert Soriano
2022-05-19 09:25:14 -07:00
parent 38fb3edf22
commit 5b94433b8f
5 changed files with 24 additions and 7 deletions

View File

@@ -1,6 +1,7 @@
<script setup lang="ts">
const { data, pending, error } = await useAsyncQuery(['getUser', { username: 'jcena' }], {
lazy: true,
lazy: false,
transform: data => data || null,
})
</script>