* fix(core): optimistic results reflect correct state
when computing the optimistic result, we need to set / reset all properties that the `fetch` action in the query reducer will also set. This fix extracts the logic into a function and calls it in both places
* chore: comment
* fix(core): resumed mutations should not be interrupted by refetches
it's important that we don't run a refetch while we're resuming paused mutations, because that could lead to UI flicker. With this fix, we're awaiting until the resume has finished before triggering a refetchOnReconnect or refetchOnWindowFocus
* test: function is async now
* 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
* Update devtools.md
Add note about new dev tools created in react native
* Update devtools.md
* Update docs/framework/react/devtools.md
* chore: prettier
* Update devtools.md
Fixed a typo making the link not accessible
---------
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
* fix: make sure all options of a query are reactive
currently, only observer based options are updated between renders (like staleTime), but query level ones are not (like retryDelay). This makes no sense, so trying to streamline here
The deleted test checked for multiple useQuery calls in the tree with different options, which I don't think happens a lot in practice.
As a side-effect, the queryFn is also updated, so it will see values from a closure. This shouldn't matter because everything used in the queryFn must be part of the queryKey
* test: solid adapter
* fix(query-core): allow for unconditional resuming of paused mutations if we get an online event
and try to stabilize flaky test
* test: do not rely on dispatching events in tests
that could influence other tests
* test: don't use getAll
* test(angular-query): add set signal input test utils
* test(angular-query): add some missing test for required input signal to inject query
* feat(angular-query): add required input signal support to inject mutation
* feat(angular-query): add inject mutation test
* feat(angular-query): add lazy signal initializer
* feat(angular-query): add required input signal support for injectMutationState
* feat(angular-query): lazy signal initializer test
* feat(angular-query): lazyInit test and init without reactive context
---------
Co-authored-by: Arnoud <6420061+arnoud-dv@users.noreply.github.com>