Skip to content

Conversation

Chriztiaan
Copy link
Contributor

Originally spurred on by #417 where compilable queries would error without having a parameter value specified.
Added a default value in the hook and improved how the error state is tracked so that the infinite rendering issue doesn't happen anymore.

Also added basic unit tests.

Added default empty array for parameters option.
Added unit tests for Tanstack wrapper.
Copy link

changeset-bot bot commented Nov 27, 2024

🦋 Changeset detected

Latest commit: c6fd4a6

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

This PR includes changesets to release 1 package
Name Type
@powersync/tanstack-react-query 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

@Chriztiaan Chriztiaan marked this pull request as ready for review November 27, 2024 09:01
@Chriztiaan Chriztiaan force-pushed the fix/tanstack-error-handling-improvements branch from 192705c to c6fd4a6 Compare November 27, 2024 11:07
@Chriztiaan Chriztiaan merged commit 3f9df96 into main Nov 27, 2024
6 checks passed
@Chriztiaan Chriztiaan deleted the fix/tanstack-error-handling-improvements branch November 27, 2024 11:35
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