Skip to content

docs: Add Lazy schema example to useQuery#3843

Merged
ntucker merged 1 commit intomasterfrom
docs/usequery-lazy-example
Apr 1, 2026
Merged

docs: Add Lazy schema example to useQuery#3843
ntucker merged 1 commit intomasterfrom
docs/usequery-lazy-example

Conversation

@ntucker
Copy link
Copy Markdown
Collaborator

@ntucker ntucker commented Apr 1, 2026

Summary

  • Adds a new "Lazy relationships" example to the useQuery() docs showing how to resolve deferred relationships using Lazy's .query accessor with useQuery
  • Interactive HooksPlayground demo with Department/Building entities where buildings is a Lazy([Building]) field, resolved on demand in a child component

Test plan

  • Verify the HooksPlayground renders correctly on the docs site (yarn start:vscode in website/)
  • Confirm Lazy is in scope (requires packages to be built)

Made with Cursor


Note

Low Risk
Documentation-only change that adds a new example; main risk is broken/incorrect sample code in the interactive HooksPlayground.

Overview
Adds a new “Lazy relationships” section to docs/core/api/useQuery.md demonstrating how to use Lazy schema fields via their .query accessor with useQuery.

Includes an interactive HooksPlayground example (Department/Building) that resolves related entities on demand in a child component to limit re-renders.

Written by Cursor Bugbot for commit 801481b. This will update automatically on new commits. Configure here.

Shows how to use useQuery with Lazy's .query accessor to resolve
deferred relationships on demand, with a Department/Building
HooksPlayground demo.

Made-with: Cursor
@vercel
Copy link
Copy Markdown

vercel bot commented Apr 1, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
docs-site Ignored Ignored Apr 1, 2026 1:08am

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Apr 1, 2026

⚠️ No Changeset found

Latest commit: 801481b

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

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

@codecov
Copy link
Copy Markdown

codecov bot commented Apr 1, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.08%. Comparing base (e22c634) to head (801481b).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #3843   +/-   ##
=======================================
  Coverage   98.08%   98.08%           
=======================================
  Files         152      152           
  Lines        2871     2871           
  Branches      563      563           
=======================================
  Hits         2816     2816           
  Misses         11       11           
  Partials       44       44           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@ntucker ntucker merged commit a3df2c5 into master Apr 1, 2026
23 checks passed
@ntucker ntucker deleted the docs/usequery-lazy-example branch April 1, 2026 01:17
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