-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
fix(core): do not inform QueriesObserver subscribers if combined result hasn't changed #8153
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
…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. |
| client: QueryClient, | ||
| queries: Array<QueryObserverOptions<any, any, any, any, any>>, | ||
| _options?: QueriesObserverOptions<TCombinedResult>, | ||
| options?: QueriesObserverOptions<TCombinedResult>, |
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.
Is it safe to rely on this? If options.combine change in the hook, will this be reflected?
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.
yes because we update it here:
| this.#options = options |
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 |
fixes #8122