SIGN IN SIGN UP
TanStack / query UNCLAIMED

🤖 Powerful asynchronous state management, server-state utilities and data fetching for the web. TS/JS, React Query, Solid Query, Svelte Query and Vue Query.

0 0 0 TypeScript

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
D
Dominik Dorfmeister committed
c55f609ffe82f9edbebdbe8c7474ac9218315791
Parent: a437f6d
Committed by GitHub <noreply@github.com> on 3/12/2024, 7:48:06 AM