Skip to content

useQuery swallows underlying Kysely errors #834

@KazimirPodolski

Description

@KazimirPodolski

Using Kysely adapter, this properly throws an error:

computedAsync(async () => await db.selectFrom('ololo').selectAll().execute());
kysely:error: Error: no such table: ololo
    at check (sqlite-api.js:889:11)
    at sqlite-api.js:738:13
    at async WorkerWASQLiteConnection._execute (WASQLiteConnection.js:361:26)
    at async WorkerWASQLiteConnection.executeSingleStatement (WASQLiteConnection.js:331:25

while this doesn't:

useQuery(db.selectFrom('ololo').selectAll());

It just silently doesn't work, the console is empty.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions