mirror of
https://github.com/ArthurDanjou/trpc-nuxt.git
synced 2026-02-02 05:08:01 +01:00
update readme
This commit is contained in:
11
README.md
11
README.md
@@ -56,6 +56,15 @@ Use the client like so:
|
||||
|
||||
```html
|
||||
<script setup lang="ts">
|
||||
const { data } = await useTrpcQuery('hello')
|
||||
const client = useClient()
|
||||
const data = await client.query('hello')
|
||||
console.log(data) // => 👈 world
|
||||
</script>
|
||||
```
|
||||
|
||||
## Composables
|
||||
|
||||
Composables are auto-imported.
|
||||
|
||||
###`useTrpcQuery(path, input)`
|
||||
|
||||
|
||||
Reference in New Issue
Block a user