Files
trpc-nuxt/playground/app.vue
Robert Soriano 4ac104943d update readme
2022-05-19 00:38:27 -07:00

19 lines
366 B
Vue

<script setup lang="ts">
const { data, error } = await useAsyncQuery(['getUser', { username: 'jcena' }], {
lazy: true,
})
const client = useClient()
</script>
<template>
<div>
<div v-if="data">
{{ JSON.stringify(data, null, 2) }}
</div>
<div v-else-if="error">
asdx {{ JSON.stringify(error, null, 2) }}
</div>
</div>
</template>