Sync#1
Merged
xiaoyu2er merged 39 commits intoTanStack-dev:mainfrom May 6, 2025
Merged
Conversation
…test.ts (#9067) * test(query-persist-client-core): use fake timers for createPersister.test.ts * refactor: remove unnecessary export --------- Co-authored-by: Jonghyeon Ko <manudeli.ko@gmail.com>
…on` and `NonUndefinedGuard`, similar to react-query (#9073) * fix(vue-query): update `initialData` type to allow InitialDataFunction and NonUndefinedGuard, similar to react-query * ci: apply automated fixes * test: update types to include `undefined` in useQueries and useQuery tests in vue-query * ci: apply automated fixes --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
* fix: Correct bug where non-undefined values in initialData are not treated as defined * test: Update test to ensure data is TData only when initialData is defined * fix: Modified to recognize UndefinedInitialQueryOptions when a function returning undefined is used in initialData. * test: update test result values for case where a function returning TData is passed to initialData
* Fix broken link to TkDodo's Blog page from QueryCache page It looks like the `docs` part of the url was being removed, so there's now one less `../` in the relative url. * Fix other broken links on page & add `.md` extension to relative links as suggested by @TkDodo
* ref: switch from Object.defineProperty to Proxies * test: improve the test that tracks property access
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
* refactor(query-core): make common type more readable * fix: revert WithRequired type * fix: remove blank * refactor(query-core): change Omitkeyof to Omit * refactor: remove unused common type * fix: revert type WithRequired
* refetchmode replace * feat: refetchMode replace for streamedQuery * test: should allow arrays
…ads to fix type inference (#9088) * fix(vue-query): more specific function overloads for queryOptions and useQuery to come before general ones (#9069) This instructs TypeScript to pick correct function overload when initialData is defined. * ci: apply automated fixes --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Jonghyeon Ko <manudeli.ko@gmail.com>
…tab doesn't remove it from all tabs (#9017) * fix(solid-query): client() doesn't return undefined * fix: (query-broadcast-client-experimental) - removing query from one tab doesn't remove it from all tabs * fix: (query-broadcast-client-experimental) - removing query from one tab doesn't remove it from all tabs * isolated tests * chore: add test config --------- Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
* fix(types): useSuspenseQuery should type-narrow the Error field * Update packages/query-core/src/types.ts Co-authored-by: Jonghyeon Ko <manudeli.ko@gmail.com> * Update packages/query-core/src/types.ts Co-authored-by: Jonghyeon Ko <manudeli.ko@gmail.com> * ref: use DistributiveOmit from query-core in vue-query * chore: fix type error in tests --------- Co-authored-by: Jonghyeon Ko <manudeli.ko@gmail.com>
…ule as error across multiple packages gradually (#9104) * chore(*): init ESLint configurations to include 'vitest/expect-expect' rule as error across multiple packages gradually * chore(query-core): remove unused import from ESLint configuration * chore(angular-query-experimental): update eslint rule * chore: integrate vitest ESLint plugin and apply recommended rules across multiple packages * chore(react-query-devtools): add vitest ESLint plugin to configuration
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.