We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f0a88e commit 9c04399Copy full SHA for 9c04399
README.md
@@ -58,6 +58,7 @@ export function useTRPC() {
58
<script lang="ts" setup>
59
const { data: greeting } = useTRPC().hello.useQuery({ name: 'World' })
60
</script>
61
+
62
<template>
63
<div>
64
<h1>{{ greeting }}</h1>
@@ -102,7 +103,7 @@ const { mutate: updateGreeting } = useTRPC().hello.update.useMutation({
102
103
104
105
<input v-model="name" type="text" />
- <button @click="updateGreeting({ name })">Update greeting</button>
106
+ <button @click="() => updateGreeting({ name })">Update greeting</button>
107
</div>
108
</template>
109
```
0 commit comments