Skip to content

useQuery swallows underlying Kysely errors #834

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions