mirror of
https://github.com/ArthurDanjou/trpc-nuxt.git
synced 2026-01-31 12:17:53 +01:00
use trpc url options in api
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user