🤖 Powerful asynchronous state management, server-state utilities and data fetching for the web. TS/JS, React Query, Solid Query, Svelte Query and Vue Query.
This report summarizes scanner evidence for TanStack/query, a TypeScript project with 50,503 GitHub stars. SynthScan examined 441,652 lines of code across 4893 source files, recording 126 pattern matches distributed across 6 syntactic categories. The legacy adjusted pattern signal is 0.3 (Low pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.
Can maintainers explain intent, assumptions, and trade-offs? 92 finding(s).
Are imports declared and package/API names verified? 34 finding(s).
Are wrappers, guards, and repeated structures necessary? 60 finding(s).
Which changes need focused human review? 126 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 126 distinct pattern matches across 6 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …lte/reference/functions/defaultShouldDehydrateQuery.md | 9 | function defaultShouldDehydrateQuery(query: Query): boolean; | CODE |
| LOW | …/reference/functions/defaultShouldDehydrateMutation.md | 9 | function defaultShouldDehydrateMutation(mutation: Mutation): boolean; | CODE |
| LOW | …lit/reference/functions/defaultShouldDehydrateQuery.md | 9 | function defaultShouldDehydrateQuery(query: Query): boolean; | CODE |
| LOW | …/lit/reference/functions/registerDefaultQueryClient.md | 9 | function registerDefaultQueryClient(client: QueryClient): void; | CODE |
| LOW | …/reference/functions/defaultShouldDehydrateMutation.md | 9 | function defaultShouldDehydrateMutation(mutation: Mutation): boolean; | CODE |
| LOW | …it/reference/functions/unregisterDefaultQueryClient.md | 9 | function unregisterDefaultQueryClient(client: QueryClient): void; | CODE |
| LOW | …vue/reference/functions/defaultShouldDehydrateQuery.md | 9 | function defaultShouldDehydrateQuery(query: Query): boolean; | CODE |
| LOW | …/reference/functions/defaultShouldDehydrateMutation.md | 9 | function defaultShouldDehydrateMutation(mutation: Mutation): boolean; | CODE |
| LOW | …lar/reference/functions/defaultShouldDehydrateQuery.md | 9 | function defaultShouldDehydrateQuery(query: Query): boolean; | CODE |
| LOW | …/reference/functions/defaultShouldDehydrateMutation.md | 9 | function defaultShouldDehydrateMutation(mutation: Mutation): boolean; | CODE |
| LOW | …lid/reference/functions/defaultShouldDehydrateQuery.md | 9 | function defaultShouldDehydrateQuery(query: Query): boolean; | CODE |
| LOW | …/reference/functions/defaultShouldDehydrateMutation.md | 9 | function defaultShouldDehydrateMutation(mutation: Mutation): boolean; | CODE |
| LOW | …act/reference/functions/defaultShouldDehydrateQuery.md | 9 | function defaultShouldDehydrateQuery(query: Query): boolean; | CODE |
| LOW | …/reference/functions/defaultShouldDehydrateMutation.md | 9 | function defaultShouldDehydrateMutation(mutation: Mutation): boolean; | CODE |
| LOW | …eact/reference/functions/useQueryErrorResetBoundary.md | 9 | function useQueryErrorResetBoundary(): QueryErrorResetBoundaryValue; | CODE |
| LOW | …act/reference/functions/defaultShouldDehydrateQuery.md | 9 | function defaultShouldDehydrateQuery(query: Query): boolean; | CODE |
| LOW | …/reference/functions/defaultShouldDehydrateMutation.md | 9 | function defaultShouldDehydrateMutation(mutation: Mutation): boolean; | CODE |
| LOW | …eact/reference/functions/useQueryErrorResetBoundary.md | 11 | function useQueryErrorResetBoundary(): QueryErrorResetBoundaryValue; | CODE |
| LOW | examples/lit/pagination/src/services/projects/api.ts | 109 | export async function armNextProjectMutationFailureOnServer(): Promise<void> { | CODE |
| LOW⚡ | examples/lit/ssr/src/app.ts | 9 | function incrementSsrQueryControllerCreationCount( | CODE |
| LOW⚡ | examples/lit/ssr/src/app.ts | 18 | export function resetSsrQueryControllerCreationCount( | CODE |
| LOW⚡ | examples/lit/ssr/src/app.ts | 24 | export function getSsrQueryControllerCreationCount( | CODE |
| LOW | scripts/generate-docs.ts | 38 | function simplifyLitQueriesControllerTypes( | CODE |
| LOW | scripts/generate-docs.ts | 79 | async function trimTrailingWhitespaceInMarkdown(outputDir: string) { | CODE |
| LOW | scripts/generate-docs.ts | 105 | async function addRedirectFromToFileFrontmatter( | CODE |
| LOW | scripts/generate-docs.ts | 127 | async function addRedirectFromToFrontmatter( | CODE |
| LOW | scripts/generate-docs.ts | 139 | async function generatePackageReferenceDocs(pkg: PackageReferenceDocsConfig) { | CODE |
| LOW | packages/preact-query/src/__tests__/utils.tsx | 47 | export function mockOnlineManagerIsOnline( | CODE |
| LOW | …move-overloads/__testfixtures__/bug-reports.output.tsx | 14 | export function useDetailsContainsIdentifierAsThirdArgument({ groupId }: { groupId?: string }): any { | CODE |
| LOW | …move-overloads/__testfixtures__/bug-reports.output.tsx | 47 | export function useDeleteSomethingWithOnError(): any { | CODE |
| LOW | …emove-overloads/__testfixtures__/bug-reports.input.tsx | 12 | export function useDetailsContainsIdentifierAsThirdArgument({ groupId }: { groupId?: string }): any { | CODE |
| LOW | …emove-overloads/__testfixtures__/bug-reports.input.tsx | 39 | export function useDeleteSomethingWithOnError(): any { | CODE |
| LOW | packages/react-query/src/__tests__/utils.tsx | 46 | export function mockOnlineManagerIsOnline( | CODE |
| LOW | packages/lit-query/src/context.ts | 31 | export function registerDefaultQueryClient(client: QueryClient): void { | CODE |
| LOW | packages/lit-query/src/context.ts | 43 | export function unregisterDefaultQueryClient(client: QueryClient): void { | CODE |
| LOW | packages/lit-query/src/context.ts | 81 | export function createMissingQueryClientError(): Error { | CODE |
| LOW | packages/lit-query/src/context.ts | 90 | function createAmbiguousQueryClientError(): Error { | CODE |
| LOW | packages/lit-query/src/createQueriesController.ts | 224 | function createPendingQueryObserverResult(): QueryObserverResult { | CODE |
| LOW | packages/lit-query/src/createQueriesController.ts | 263 | function createPlaceholderQueryObserverResult( | CODE |
| LOW | …-next-experimental/src/ReactQueryStreamedHydration.tsx | 30 | export function ReactQueryStreamedHydration(props: { | CODE |
| LOW | …uery-next-experimental/src/HydrationStreamProvider.tsx | 86 | function UseClientHydrationStreamProvider(props: { | CODE |
| LOW | packages/query-sync-storage-persister/src/index.ts | 53 | export function createSyncStoragePersister({ | CODE |
| LOW | packages/query-persist-client-core/src/persist.ts | 125 | export async function persistQueryClientRestore({ | CODE |
| LOW | packages/query-persist-client-core/src/persist.ts | 190 | export function persistQueryClientSubscribe( | CODE |
| LOW | packages/solid-query/src/useBaseQuery.ts | 215 | function setStateWithReconciliation(res: typeof observerResult) { | CODE |
| LOW | packages/solid-query/src/__tests__/utils.tsx | 39 | export function mockOnlineManagerIsOnline( | CODE |
| LOW | packages/query-devtools/src/utils.tsx | 96 | export function getQueryStatusColorByLabel(label: QueryStatusLabel) { | CODE |
| LOW | …vtools/src/providers/DevtoolsSubscriptionsProvider.tsx | 17 | export function DevtoolsSubscriptionsProvider(props: ParentProps) { | CODE |
| LOW | …perimental/src/__tests__/inject-devtools-panel.test.ts | 26 | function MockTanstackQueryDevtoolsPanel() { | CODE |
| LOW | …query-experimental/src/__tests__/with-devtools.test.ts | 36 | function MockTanstackQueryDevtools() { | CODE |
| LOW | …t-plugin-query/src/utils/detect-react-query-imports.ts | 30 | export function detectTanstackQueryImports(create: EnhancedCreate): Create { | CODE |
| LOW | …ery/src/__tests__/mutation-property-order.rule.test.ts | 41 | export function generateInvalidPermutations( | CODE |
| LOW | …c/__tests__/infinite-query-property-order.rule.test.ts | 41 | export function generateInvalidPermutations( | CODE |
| LOW | …uery/src/rules/exhaustive-deps/exhaustive-deps.rule.ts | 229 | function dereferenceVariablesAndTypeAssertions( | CODE |
| LOW | …ules/prefer-query-options/prefer-query-options.rule.ts | 95 | function reportInlineFilterQueryKey(node: TSESTree.Node): void { | CODE |
| LOW | …ules/prefer-query-options/prefer-query-options.rule.ts | 239 | function getReturnedObjectExpressions( | CODE |
| LOW | packages/query-core/src/hydration.ts | 209 | export function defaultShouldDehydrateMutation(mutation: Mutation) { | CODE |
| LOW | packages/query-core/src/hydration.ts | 219 | export function defaultShouldDehydrateQuery(query: Query) { | CODE |
| LOW | packages/query-core/src/__tests__/utils.ts | 6 | export function mockOnlineManagerIsOnline( | CODE |
| LOW | …ckages/query-core/src/__tests__/streamedQuery.test.tsx | 20 | function createAsyncNumberGenerator(amount: number, start = 0) { | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …preact/reference/interfaces/UseSuspenseQueryOptions.md | 11 | and `placeholderData` — Suspense hooks cannot render a "disabled" or "placeholder" state, so those options | CODE |
| LOW | …eference/interfaces/UseSuspenseInfiniteQueryOptions.md | 11 | `throwOnError`, and `placeholderData` — Suspense hooks cannot render a "disabled" or "placeholder" state, so | CODE |
| LOW | docs/framework/react/guides/placeholder-query-data.md | 19 | When we use `placeholderData`, our Query will not be in a `pending` state - it will start out as being in `success` stat | CODE |
| LOW | …/react/reference/interfaces/UseSuspenseQueryOptions.md | 11 | and `placeholderData` — Suspense hooks cannot render a "disabled" or "placeholder" state, so those options | CODE |
| LOW | …eference/interfaces/UseSuspenseInfiniteQueryOptions.md | 11 | `throwOnError`, and `placeholderData` — Suspense hooks cannot render a "disabled" or "placeholder" state, so | CODE |
| LOW | packages/preact-query/src/types.ts | 181 | * and `placeholderData` — Suspense hooks cannot render a "disabled" or "placeholder" state, so those options | COMMENT |
| LOW | packages/preact-query/src/types.ts | 261 | * `throwOnError`, and `placeholderData` — Suspense hooks cannot render a "disabled" or "placeholder" state, so | COMMENT |
| LOW | packages/preact-query/src/__tests__/useQuery.test.tsx | 4229 | placeholderData: 'placeholder', | CODE |
| LOW | packages/preact-query/src/__tests__/useQuery.test.tsx | 4251 | data: 'placeholder', | CODE |
| LOW | packages/preact-query/src/__tests__/useQuery.test.tsx | 4272 | placeholderData: 'placeholder', | CODE |
| LOW | packages/preact-query/src/__tests__/useQuery.test.tsx | 4300 | data: 'placeholder', | CODE |
| LOW | packages/preact-query/src/__tests__/useQuery.test.tsx | 4308 | data: 'placeholder', | CODE |
| LOW | …preact-query/src/__tests__/useSuspenseQueries.test.tsx | 300 | sleep(localDuration).then(() => ({ name: 'John Doe', age: 50 })), | CODE |
| LOW | …preact-query/src/__tests__/useSuspenseQueries.test.tsx | 349 | data: 'John Doe', | CODE |
| LOW | packages/react-query/src/types.ts | 182 | * and `placeholderData` — Suspense hooks cannot render a "disabled" or "placeholder" state, so those options | COMMENT |
| LOW | packages/react-query/src/types.ts | 262 | * `throwOnError`, and `placeholderData` — Suspense hooks cannot render a "disabled" or "placeholder" state, so | COMMENT |
| LOW | packages/react-query/src/__tests__/useQuery.test.tsx | 4219 | placeholderData: 'placeholder', | CODE |
| LOW | packages/react-query/src/__tests__/useQuery.test.tsx | 4241 | data: 'placeholder', | CODE |
| LOW | packages/react-query/src/__tests__/useQuery.test.tsx | 4262 | placeholderData: 'placeholder', | CODE |
| LOW | packages/react-query/src/__tests__/useQuery.test.tsx | 4290 | data: 'placeholder', | CODE |
| LOW | packages/react-query/src/__tests__/useQuery.test.tsx | 4298 | data: 'placeholder', | CODE |
| LOW | …/react-query/src/__tests__/useSuspenseQueries.test.tsx | 355 | sleep(localDuration).then(() => ({ name: 'John Doe', age: 50 })), | CODE |
| LOW | …/react-query/src/__tests__/useSuspenseQueries.test.tsx | 405 | data: 'John Doe', | CODE |
| LOW | packages/solid-query/src/__tests__/useQuery.test.tsx | 3778 | placeholderData: 'placeholder', | CODE |
| LOW | packages/solid-query/src/__tests__/useQuery.test.tsx | 3802 | data: 'placeholder', | CODE |
| LOW | packages/solid-query/src/__tests__/useQuery.test.tsx | 3823 | placeholderData: 'placeholder', | CODE |
| LOW | packages/solid-query/src/__tests__/useQuery.test.tsx | 3853 | data: 'placeholder', | CODE |
| LOW | packages/solid-query/src/__tests__/useQuery.test.tsx | 3861 | data: 'placeholder', | CODE |
| LOW | …-query-experimental/src/__tests__/inject-query.test.ts | 172 | placeholderData: 'placeholder', | CODE |
| LOW | …ckages/query-core/src/__tests__/queryObserver.test.tsx | 991 | placeholderData: 'placeholder', | CODE |
| LOW | …ckages/query-core/src/__tests__/queryObserver.test.tsx | 996 | data: 'placeholder', | CODE |
| LOW | …ckages/query-core/src/__tests__/queryObserver.test.tsx | 1008 | expect(results[0]).toMatchObject({ status: 'success', data: 'placeholder' }) | CODE |
| LOW | …ages/query-core/src/__tests__/queryObserver.test-d.tsx | 551 | placeholderData: { value: 'placeholder' }, | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | integrations/svelte-vite/src/vite-env.d.ts | 1 | /// <reference types="svelte" /> | COMMENT |
| LOW | examples/svelte/chat/src/vite-env.d.ts | 1 | /// <reference types="svelte" /> | COMMENT |
| LOW | …amples/svelte/default-query-function/src/vite-env.d.ts | 1 | /// <reference types="svelte" /> | COMMENT |
| LOW | examples/svelte/basic-graphql-request/src/vite-env.d.ts | 1 | /// <reference types="svelte" /> | COMMENT |
| LOW | examples/svelte/simple/src/vite-env.d.ts | 1 | /// <reference types="svelte" /> | COMMENT |
| LOW | examples/svelte/algolia/src/vite-env.d.ts | 1 | /// <reference types="svelte" /> | COMMENT |
| LOW | examples/svelte/batching/src/vite-env.d.ts | 1 | /// <reference types="svelte" /> | COMMENT |
| LOW | examples/svelte/shadow-dom/src/vite-env.d.ts | 1 | /// <reference types="svelte" /> | COMMENT |
| LOW | examples/solid/astro/src/env.d.ts | 1 | /// <reference path="../.astro/types.d.ts" /> | COMMENT |
| LOW | packages/preact-query/src/HydrationBoundary.tsx | 101 | // | COMMENT |
| LOW | packages/react-query/src/HydrationBoundary.tsx | 101 | // This code needs to happen during the render phase, because after initial | COMMENT |
| LOW | …ages/query-devtools/src/TanstackQueryDevtoolsPanel.tsx | 41 | #queryFlavor: string | COMMENT |
| LOW | packages/svelte-query/src/createBaseQuery.svelte.ts | 121 | // The only reason this is necessary is because of `isRestoring`. | COMMENT |
| LOW | packages/query-core/src/queryObserver.ts | 61 | TQueryKey extends QueryKey = QueryKey, | COMMENT |
| LOW | packages/query-core/src/timeoutManager.ts | 121 | if (process.env.NODE_ENV !== 'production') { | COMMENT |
| LOW | packages/query-core/src/__tests__/hydration.test.tsx | 1481 | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | examples/svelte/offline/static/mockServiceWorker.js | 124 | async function handleRequest(event, requestId, requestInterceptedAt) { | CODE |
| LOW | …les/lit/optimistic-updates/public/mockServiceWorker.js | 124 | async function handleRequest(event, requestId, requestInterceptedAt) { | CODE |
| LOW | …amples/lit/auto-refetching/public/mockServiceWorker.js | 124 | async function handleRequest(event, requestId, requestInterceptedAt) { | CODE |
| LOW | …inite-query-with-max-pages/public/mockServiceWorker.js | 124 | async function handleRequest(event, requestId, requestInterceptedAt) { | CODE |
| LOW | examples/lit/offline/public/mockServiceWorker.js | 124 | async function handleRequest(event, requestId, requestInterceptedAt) { | CODE |
| LOW | …/load-more-infinite-scroll/public/mockServiceWorker.js | 124 | async function handleRequest(event, requestId, requestInterceptedAt) { | CODE |
| LOW | examples/vue/offline/public/mockServiceWorker.js | 124 | async function handleRequest(event, requestId, requestInterceptedAt) { | CODE |
| LOW | examples/solid/offline/public/mockServiceWorker.js | 124 | async function handleRequest(event, requestId, requestInterceptedAt) { | CODE |
| LOW | …/preact/optimistic-updates/public/mockServiceWorker.js | 124 | async function handleRequest(event, requestId, requestInterceptedAt) { | CODE |
| LOW | examples/preact/pagination/public/mockServiceWorker.js | 124 | async function handleRequest(event, requestId, requestInterceptedAt) { | CODE |
| LOW | …les/preact/auto-refetching/public/mockServiceWorker.js | 124 | async function handleRequest(event, requestId, requestInterceptedAt) { | CODE |
| LOW | …inite-query-with-max-pages/public/mockServiceWorker.js | 124 | async function handleRequest(event, requestId, requestInterceptedAt) { | CODE |
| LOW | examples/preact/offline/public/mockServiceWorker.js | 124 | async function handleRequest(event, requestId, requestInterceptedAt) { | CODE |
| LOW | …/load-more-infinite-scroll/public/mockServiceWorker.js | 124 | async function handleRequest(event, requestId, requestInterceptedAt) { | CODE |
| LOW | examples/react/offline/public/mockServiceWorker.js | 124 | async function handleRequest(event, requestId, requestInterceptedAt) { | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | …s/angular/rxjs/src/app/components/example.component.ts | 26 | this.form.controls.term.valueChanges.pipe( | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | integrations/angular-cli-20/README.md | 15 | ## Code scaffolding | COMMENT |