* fix: we don't want errors that get reverted internally to throw on imperative methods
to achieve that, we let the retryer's `onError` "transform" the result back to potentially TData, and if so, we'll resolve the promise to that instead; that means calls to `fetchQuery` will be "successful" when a cancellation happens in the meantime, but they will then resolve to the reverted data; also, if the initial fetch is cancelled, we would still throw, as there is no data to revert to.
* refactor: async/await
* minimal test adjustments
* test: fix it
* fix: revertState is now a local variable
* fix: make sure "silent" reverts do not reject ongoing promises
up until now, silent reverts have only stopped the query from going into error state, but the exposed promise was still rejected
now, the promise won't reject because a silent revert indicates another refetch happening, so we'd want to get that promise's result instead
this also means "silent" is an internal thing that shouldn't be used by consumers, because it can lead to never resolving promises instead
* chore: bring back isCancelledError and deprecate it
* test: revert changes
* test: minimal adjustment to timings
- Add browser logos for Chrome, Firefox, and Edge
- Update devtools documentation across all frameworks to include Firefox and Edge extensions
- Replace Chrome-only messaging with multi-browser support
- Add inline browser icons with links to respective extension stores
* Add oRPC to community projects for TanStack Query (Vue)
* Update oRPC link to TanStack Query integration
This should make oRPC more relevant when people search for things like "orpc tanstack query"
---------
Co-authored-by: Jonghyeon Ko <manudeli.ko@gmail.com>
* Add oRPC to community projects for TanStack Query (React)
* Update oRPC link to TanStack Query integration
This should make oRPC more relevant when people search for things like "orpc tanstack query"
---------
Co-authored-by: Jonghyeon Ko <manudeli.ko@gmail.com>
* Add Hey API to community projects for TanStack Query (Vue)
* Update Hey API link to TanStack Query plugin
This should make Hey API more relevant when people search for things like "openapi tanstack query"
---------
Co-authored-by: Jonghyeon Ko <manudeli.ko@gmail.com>
* Add Hey API to community projects for TanStack Query (React)
* Update Hey API link to TanStack Query plugin
This should make Hey API more relevant when people search for things like "openapi tanstack query"
---------
Co-authored-by: Jonghyeon Ko <manudeli.ko@gmail.com>
To support future sub-path exports in apps still using moduleResolution: node type declarations should be located in the same path as the corresponding implementation .mjs file
* fix(react-query): HydrationBoundary has strictly typed `state`
Only type definition changes, the `state` parameter is now required and
must be `DehydratedState` (or nullish). Every case omitting this prop or
passing a different shape is a bug now caught by `tsc`. Correct code has
no action needed.
Closes#9323
* ci: apply automated fixes
---------
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
* test(svelte-query/createQueries): simplify 'queryFn' and use precise time in 'advanceTimersByTimeAsync'
* test(svelte-query/createQueries): add test for success when queries reslove at different times