chore: Downgrade @tanstack/react-query to ^4.43.0#27964
Conversation
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #27964 +/- ##
===========================================
- Coverage 82.56% 47.58% -34.99%
===========================================
Files 4825 4839 +14
Lines 123955 124449 +494
Branches 27617 27734 +117
===========================================
- Hits 102346 59220 -43126
- Misses 14560 59901 +45341
+ Partials 7049 5328 -1721 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
89c19f9 to
cb3d691
Compare
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsE2E Test Selection:
Affected features:
Tag selection rationale:
The react-query downgrade is a high-risk change as it affects data fetching behavior across multiple features. Loading state changes could cause UI regressions (spinners not showing, premature data display, etc.). Performance Test Selection: |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
|
✅ E2E Fixture Validation — Schema is up to date |
|




Description
This PR downgrades
@tanstack/react-queryto^4.43.0to allow us to bring in shared tooling between extension and mobile for queries. This is a temporary measure until the extension gets to React 18, which is the minimum version for@tanstack/react-query@5.Most of the breaking changes that impact our existing code is type related due to
TErrorbeingunknownin v4. Additionally a couple of properties we use have been renamed between the two versions. The semantics ofisLoadinghas also changed forenabled: falsequeries, but that can be recovered by usingisFetching && isLoadingThis PR adjusts all of these.Changelog
CHANGELOG entry: null
Related issues
https://consensyssoftware.atlassian.net/browse/WPC-445
Note
Medium Risk
Moderate risk because it downgrades a core data-fetching library and adjusts loading/polling semantics across multiple hooks, which could change UI states or caching behavior if any edge cases were missed.
Overview
Downgrades
@tanstack/react-queryfrom v5 to v4 (including lockfile updates) and updates the app’sQueryClientdefaults to use v4’scacheTimeoption.Aligns hooks and tests with v4 API/behavior changes: replaces
gcTimeusage, updateskeepPreviousDataconfiguration, switches some status checks fromisPendingtoisLoading, adds/propagatesisFetching, and standardizes derivedisLoadingasisLoading && isFetchingfor disabled/manual queries (Card hooks, Ramp hooks, Predict query options, and related tests).Written by Cursor Bugbot for commit cb3d691. This will update automatically on new commits. Configure here.