mirror of
https://github.com/ArthurDanjou/trpc-nuxt.git
synced 2026-01-14 12:14:40 +01:00
docs: update aborting procs
This commit is contained in:
@@ -15,7 +15,7 @@ export default function useGetTodo(id: number) {
|
||||
ac.abort()
|
||||
})
|
||||
|
||||
return useAsyncData<GetTodosOutput, ErrorOutput>(() => {
|
||||
return useAsyncData(() => {
|
||||
return $client.todo.getTodo.query(id, {
|
||||
signal: ac.signal
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user