Skip to content

Conversation

@elohmeier
Copy link

@elohmeier elohmeier commented Dec 11, 2025

Adds SingleResult support to useLiveQuery, matching the React implementation. When using .findOne(), data is typed as T | undefined instead of Array<T>.

Basically ports #440 to svelte-db.

@changeset-bot
Copy link

changeset-bot bot commented Dec 11, 2025

🦋 Changeset detected

Latest commit: 4640d5e

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@tanstack/svelte-db Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant