feat(solid-query/useQueries): add Suspense support#10170
feat(solid-query/useQueries): add Suspense support#10170sukvvon wants to merge 7 commits intoTanStack:mainfrom
Conversation
…ce' following 'useBaseQuery' pattern
🦋 Changeset detectedLatest commit: 8b25dc6 The changes in this PR will be included in the next version bump. This PR includes changesets to release 3 packages
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 |
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
| Command | Status | Duration | Result |
|---|---|---|---|
nx affected --targets=test:sherif,test:knip,tes... |
❌ Failed | 1m 48s | View ↗ |
nx run-many --target=build --exclude=examples/*... |
✅ Succeeded | <1s | View ↗ |
☁️ Nx Cloud last updated this comment at 2026-02-22 17:43:09 UTC

🎯 Changes
Add Suspense support to
useQueriesby following the samecreateResourcepattern used inuseBaseQuery.Implementation
createResourcewith resolver pattern for suspend/resolve/rejectneedsSuspend()helper to check if any query is fetching and loadingdataproperty to trigger Suspense lazily when accessedshouldThrowErrorfor Error Boundary integrationqueueMicrotaskfor batched state updatesTests (23 cases)
Test scenarios are based on
react-query'suseSuspenseQueriestests, adapted for Solid's reactivity model.✅ Checklist
pnpm run test:pr.🚀 Release Impact