update router location

This commit is contained in:
Robert Soriano
2022-05-17 16:50:41 -07:00
parent 81d8497f20
commit 2f19d63e5c
4 changed files with 7 additions and 13 deletions

View File

@@ -1,18 +1,12 @@
<script setup lang="ts">
const { data, pending } = useLazyTrpcQuery('getUser', {
const client = useClient()
const data = await client.query('getUser', {
name: 'roberts',
})
watchEffect(() => {
console.log(data.value)
})
</script>
<template>
<div v-if="pending">
Loading...
</div>
<div v-else>
<div>
{{ data }}
</div>
</template>