feat: add abortOnUnmount option

This commit is contained in:
Robert Soriano
2022-10-31 09:50:15 -07:00
parent 76619ac541
commit 4c8a6d7b35
4 changed files with 29 additions and 6 deletions

View File

@@ -24,7 +24,12 @@ const addTodo = async () => {
}
}
const { data: todos, pending, error, refresh } = await $client.todo.getTodos.query()
const { data: todos, pending, error, refresh } = await $client.todo.getTodos.query(undefined, {
trpc: {
abortOnUnmount: true,
},
server: false,
})
</script>
<template>