fix(core): do not inform QueriesObserver subscribers if combined result hasn't changed#8153
Merged
fix(core): do not inform QueriesObserver subscribers if combined result hasn't changed#8153
Conversation
…lt hasn't changed
☁️ Nx Cloud ReportCI is running/has finished running commands for commit f6fdbe2. As they complete they will appear below. Click to see the status, the terminal output, and the build insights. 📂 See all runs for this CI Pipeline Execution ✅ Successfully ran 1 targetSent with 💌 from NxCloud. |
joel-narwhal
reviewed
Oct 9, 2024
| client: QueryClient, | ||
| queries: Array<QueryObserverOptions<any, any, any, any, any>>, | ||
| _options?: QueriesObserverOptions<TCombinedResult>, | ||
| options?: QueriesObserverOptions<TCombinedResult>, |
There was a problem hiding this comment.
Is it safe to rely on this? If options.combine change in the hook, will this be reflected?
Collaborator
Author
There was a problem hiding this comment.
yes because we update it here:
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #8153 +/- ##
===========================================
+ Coverage 45.41% 62.14% +16.72%
===========================================
Files 200 136 -64
Lines 7456 4765 -2691
Branches 1696 1331 -365
===========================================
- Hits 3386 2961 -425
+ Misses 3694 1564 -2130
+ Partials 376 240 -136 |
This was referenced Oct 31, 2024
Closed
Closed
This was referenced Nov 2, 2024
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
fixes #8122