Skip to content

Svelte 5 not reactive #414

@itsezc

Description

@itsezc

Using Tanstack DB with Svelte(kit) is non reactive, example:

// Doesn't work
const { data } = useLiveQuery((query) => query.from({ project: projectsCollection }));

// Works - when using {#each} with query
const query = useLiveQuery((q) => q.from({ project: projectsCollection }));
$inspect(query);

I don't believe the underlying queryFn is relevant, but if it is, I'm using fetching via SurrealDB

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions