-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
fix(core): only attach .then and .catch onto a promise if it gets dehydrated #9847
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: 033c868 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 |
WalkthroughIntroduces a changeset documenting a patch fix for Changes
Estimated code review effortπ― 2 (Simple) | β±οΈ ~12β15 minutes
Possibly related PRs
Poem
Pre-merge checks and finishing touchesβ Failed checks (1 warning)
β Passed checks (1 passed)
β¨ Finishing touches
π§ͺ Generate unit tests (beta)
π Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro π Files selected for processing (2)
π§° Additional context usedπ§ Learnings (3)π Common learningsπ Learning: 2025-11-02T22:52:33.071ZApplied to files:
π Learning: 2025-09-02T17:57:33.184ZApplied to files:
𧬠Code graph analysis (1)packages/query-core/src/hydration.ts (2)
π Additional comments (3)
Comment |
|
View your CI Pipeline Execution β for commit 033c868
βοΈ Nx Cloud last updated this comment at |
|
Sizes for commit 033c868:
|
Codecov Reportβ
All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #9847 +/- ##
===========================================
+ Coverage 45.75% 59.79% +14.04%
===========================================
Files 200 129 -71
Lines 8408 5624 -2784
Branches 1929 1525 -404
===========================================
- Hits 3847 3363 -484
+ Misses 4113 1956 -2157
+ Partials 448 305 -143 π New features to boost your workflow:
|
Ensure .then and .catch are only attached to dehydrated promises.
|
@TkDodo Re request to try this out, I reverted our project to before I removed the cancellation token thing, and was able to get the same errors in the log. I then installed the preview-version from this PR, and as far as I can see, it seems there are no longer any errors in the log. So, from my point of view at least, this PR seems to fix the issue. π |
π― Changes
β Checklist
pnpm run test:pr.π Release Impact
Summary by CodeRabbit