-
-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
Remove redundant optimisation of cache lookup for useGetMany(Aggregate) placeholderData #10256
Conversation
c4159e2
to
6085465
Compare
The typechecking errors appear to be caused by bumping react-query version and refer to code that haven't been changed here. I'll have a quick look at them, but should I rather: a. fix them in this PR (separate commit), or I am averse to removing optimisation without bumping the dependency bound since that would be an unnecessarily breaking change in a very subtle performance-impacting way. |
6085465
to
4daf0f3
Compare
I simply amended |
I also have confirmed that all 3 errors when building against latest react-query version appear in places where there is some degree of typechecker dodging. I assume that changes in react-query broke these coercions and they need to be refined or resolved soundly. Specifically:
|
4daf0f3
to
fdc978b
Compare
Rebased onto master in order to resolve the conflict in yarn.lock |
Thanks! Since you're bumping the required version for a dependency, this change should land in a minor version (e.g., 5.4) rather than a bug fix (e.g., 5.3.2). So please PR against the |
This is essentially a revert of commit e4e0f2c. See marmelab#7028 for why it was necessary. TanStack/query#6918 included equivalent optimisation [14aa69f], making it redundant here. The dependency is bumped to be at least [@tanstack/[email protected]]. [14aa69f]: TanStack/query@14aa69f [@tanstack/[email protected]]: https://github.com/TanStack/query/releases/tag/v5.21.7
fdc978b
to
d3b7370
Compare
It is now rebased onto the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks !
This is essentially a revert of commit e4e0f2c. See #7028 for why it was necessary. TanStack/query#6918 included equivalent optimisation (14aa69f), making it redundant here.
The dependency is bumped to be at least @tanstack/[email protected].