first commit
Some checks failed
ci / ci (22, ubuntu-latest) (push) Has been cancelled

This commit is contained in:
AlucardDev
2026-08-28 23:32:07 +03:00
commit 7d4ff5962c
35 changed files with 15426 additions and 0 deletions

10
app/queries/todos.ts Normal file
View File

@@ -0,0 +1,10 @@
import { defineQueryOptions } from '@pinia/colada'
export const todosQuery = defineQueryOptions({
key: ['todos'],
// NOTE: the cast sometimes avoids an "Excessive depth check" TS error
// using $fetch directly doesn't avoid the round trip to the server
// when doing SSR
// https://github.com/nuxt/nuxt/issues/24813
query: () => useRequestFetch()('/api/todos') as Promise<Todo[]>
})