Skip to content

Conversation

simolus3
Copy link
Contributor

@simolus3 simolus3 commented Oct 1, 2025

When passing streams to useQuery, one currently needs to spell out name and parameters explicitly.

As a user reported, it would be quite nice if the objects returned by syncStream() could also be used for this. That is almost the case already, a small undefined vs null issue is the only reason they're not compatible.

This fixes a type and adds a test ensuring we can pass syncStream() instances to hooks.

Copy link

changeset-bot bot commented Oct 1, 2025

🦋 Changeset detected

Latest commit: 68d4830

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

This PR includes changesets to release 4 packages
Name Type
@powersync/react Patch
@powersync/react-native Patch
@powersync/tanstack-react-query Patch
@powersync/diagnostics-app Patch

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

@simolus3 simolus3 merged commit 3008dbc into main Oct 2, 2025
9 checks passed
@simolus3 simolus3 deleted the allow-syncStream-on-query branch October 2, 2025 11:46
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.

2 participants