-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
fix: solid query hangs when not prefetchInRender #9821
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
🦋 Changeset detectedLatest commit: dbe32ec The changes in this PR will be included in the next version bump. This PR includes changesets to release 19 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 |
WalkthroughAdds Solid Query usage to the streaming example (Home route) with a Suspense-rendered useQuery, and adds experimental_prefetchInRender feature-flag guards in queryObserver to reject the thenable during construction and when tracking results if the flag is disabled. Changes
Sequence Diagram(s)sequenceDiagram
participant App as Solid App
participant Home as Home Route
participant Suspense as Suspense
participant Observer as QueryObserver
participant Flag as FeatureFlag
Note over Home,Suspense: Query render path
App->>Home: render Home
Home->>Observer: makeQueryOptions() / useQuery(...)
Home->>Suspense: render boundary
alt feature flag enabled
Observer->>Home: provide thenable/data (normal flow)
Suspense->>Home: resolves with data -> render `query-data`
else feature flag disabled
Observer->>Home: reject thenable in constructor / on access
Suspense->>Home: shows fallback ("loading...")
end
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes
Possibly related PRs
Suggested reviewers
Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
✅ Files skipped from review due to trivial changes (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
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. Comment |
|
View your CI Pipeline Execution ↗ for commit dbe32ec
☁️ Nx Cloud last updated this comment at |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #9821 +/- ##
===========================================
+ Coverage 45.74% 59.79% +14.05%
===========================================
Files 200 129 -71
Lines 8404 5621 -2783
Branches 1919 1528 -391
===========================================
- Hits 3844 3361 -483
+ Misses 4112 1955 -2157
+ Partials 448 305 -143 🚀 New features to boost your workflow:
|
🎯 Changes
So when working on tanstack router for solid we have an issue where solid query is hanging. I narrowed it down to this commit
v5.85.4...v5.85.5
So i added a piece of it back which seems to stop it from hanging. I am not sure of the impact but its in query-core so a little scary.
✅ Checklist
pnpm run test:pr.🚀 Release Impact
Summary by CodeRabbit
New Features
Bug Fixes