Skip to content

Commit 9c04399

Browse files
committed
style: lint
1 parent 7f0a88e commit 9c04399

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ export function useTRPC() {
5858
<script lang="ts" setup>
5959
const { data: greeting } = useTRPC().hello.useQuery({ name: 'World' })
6060
</script>
61+
6162
<template>
6263
<div>
6364
<h1>{{ greeting }}</h1>
@@ -102,7 +103,7 @@ const { mutate: updateGreeting } = useTRPC().hello.update.useMutation({
102103
<template>
103104
<div>
104105
<input v-model="name" type="text" />
105-
<button @click="updateGreeting({ name })">Update greeting</button>
106+
<button @click="() => updateGreeting({ name })">Update greeting</button>
106107
</div>
107108
</template>
108109
```

0 commit comments

Comments
 (0)