Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(core): do not count disabled observers as stale (#7059)
* fix: do not notify the cache of `observerOptionsUpdated` if the prevOptions weren't defaulted non-defaulted prev options indicate a "mount" event, in which case we don't want to fire an "update" event * fix: react-query tests with the new assumption that disabled observers are not stale * fix: solid-query tests with the new assumption that disabled observers are not stale * fix: re-add check accidentally removed to test a failing test * fix: prefer the stale value of observers if one exists that check looks for data not undefined anyways, but it also returns "fresh" for disabled observers now
- Loading branch information
Showing
6 changed files
with
56 additions
and
35 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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