test(solid-query): cover useQueries in the SSR hydration test (#11185) #12696
solid-query-v6-pre fromrefs/pull/12696/head·opened View on GitHub🎯 Changes#
Adds coverage for useQueries in the SSR hydration test (#11185). On this branch, useQueries builds each row on useBaseQuery (so its rows prime) but lacked test coverage. The fixture now has a useQueries with a fresh and a stale row. The test checks that after hydration the fresh row keeps the server data without refetching, and the stale row refetches once. It fails with priming disabled.
Test-only. #11185 can be closed when this merges.
✅ Checklist#
- I have followed the steps in the Contributing guide.
- I have tested code changes locally with
pnpm run test:pr, or these tests do not apply to this pull request. - I have followed the AI contribution policy and fully understand the code in this pull request, including any code generated with AI assistance.
🚀 Release Impact#
- This change affects published code, and I have generated a changeset.
- This change is docs/CI/dev-only (no release).
- 1
Important
Review skipped#
Auto reviews are disabled on base/target branches other than the default branch.
Please check the settings in the CodeRabbit UI or the
.coderabbit.yamlfile in this repository. To trigger a single review, invoke the@coderabbitai reviewcommand. Run configuration-
- Source mode: Auto
- Repository: TanStack/query
- Branch: solid-query-v6-pre
- File: .coderabbit.yaml
- Commit: 8bd6698
- Layers: Repository YAML
- Review profile: CHILL
- Plan: Advanced
- Run ID:
70e3c057-15d6-4481-80d2-c9d6477fa9bc
You can disable this status message by setting the
reviews.review_statustofalsein the CodeRabbit configuration file.Use the checkbox below for a quick retry:
- Trigger review
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
-
Sign in to join this conversation.
⚠️ No Changeset found#
Latest commit: 274dd909504501124689fb1382d31522f592c806
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