🎯 Changes#
- Read settled query properties from the Solid resource during SSR instead of the stale optimistic store.
- Allow deferred query failures to expose
status, isError, and error without requiring an ErrorBoundary.
- Preserve the existing initial-error resolution path used by SolidStart redirects.
- Add a patch changeset for
@tanstack/solid-query.
The server subscriber resolves queryResource, but it does not synchronize the proxy-backed state. After a deferred query failed, server renders therefore kept reading the initial pending result. Reading the resolved resource on the server keeps rendered state aligned with the serialized resource.
Closes #8300
✅ Checklist#
pnpm test:pr was attempted. Affected builds and tests ran, but the command failed in unrelated package type matrices because the local Corepack cache returned EACCES while spawning pnpm.cjs.
Focused validation passed:
pnpm --filter @tanstack/solid-query test:eslint
pnpm --filter @tanstack/solid-query test:types:tscurrent
pnpm --filter @tanstack/solid-query test:lib --run (322 tests)
pnpm --filter @tanstack/solid-query build
- Manual Node SSR render:
no data:error:true:SSR Error
🚀 Release Impact#
Summary by CodeRabbit#
- Bug Fixes
- Improved server-side rendering for deferred queries by exposing settled query results once available.
- Prevented deferred SSR output from remaining stuck on the initial optimistic state.
No actionable comments were generated in the recent review. 🎉
ℹ️ Recent review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID:
1d4da516-7ff4-4662-a207-98594fc9f638📥 Commits
Reviewing files that changed from the base of the PR and between 79d2384db5c8776680d5bfbe9b595618c066248b and 76d318644d52151a8781c9ba1320a9542c10ac4e.
📒 Files selected for processing (2)
.changeset/settled-ssr-state.mdpackages/solid-query/src/useBaseQuery.ts📝 Walkthrough
Walkthrough#
useBaseQuerynow exposes settled deferred query resource values during SSR, and a changeset documents the corresponding patch release for@tanstack/solid-query.Changes#
Solid Query SSR state
packages/solid-query/src/useBaseQuery.ts,.changeset/settled-ssr-state.mdqueryResource()values when available, and the changeset records the SSR behavior update and patch release.Estimated code review effort: 2 (Simple) | ~10 minutes
Possibly related issues
useBaseQueryand deferred query resources.🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
#8300.✨ Finishing Touches
🧪 Generate unit tests (beta)
Warning
Tools execution failed with the following error:
Failed to run tools: 13 INTERNAL: Received RST_STREAM with code 2 (Internal server error)
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.
❤️ Share