Skip to content

Conversation

@guendev
Copy link
Owner

@guendev guendev commented Oct 29, 2025

#27

Copilot AI review requested due to automatic review settings October 29, 2025 02:27
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds support for reactive GraphQL documents in the useQuery composable, allowing the query document itself to be a reactive ref or getter that can change at runtime.

Key changes:

  • Modified useQuery to accept reactive document parameters (ref or getter)
  • Added automatic query restart when the document changes
  • Demonstrated the feature with a dynamic todo query in the demo app

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
packages/core/src/composables/useQuery.ts Updated to support reactive documents with MaybeRefOrGetter type and added watcher to restart query on document changes
packages/web/src/App.vue Added demo section showing reactive GraphQL query usage with editable textarea
packages/operations/src/entries/queries.graphql Added Todos query definition to operations
.changeset/polite-crabs-obey.md Added changeset documenting the new feature

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@guendev guendev merged commit d5f4124 into main Oct 29, 2025
3 checks passed
@guendev guendev changed the title fix(core): support reactive GraphQL documents in useQuery fix(core): support reactive GraphQL documents in useQuery Oct 29, 2025
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