Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: TanStack/query
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: ecc94d1b9c6fff79dc9962803d96c861e59fcce8
Choose a base ref
..
head repository: TanStack/query
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 35fd2fd2f27d34274b31bc991920bef3bb4e880f
Choose a head ref
Showing with 101 additions and 99 deletions.
  1. +3 −1 packages/query-core/src/queriesObserver.ts
  2. +98 −98 pnpm-lock.yaml
4 changes: 3 additions & 1 deletion packages/query-core/src/queriesObserver.ts
Original file line number Diff line number Diff line change
@@ -92,7 +92,9 @@ export class QueriesObserver<
this.#options = options

if (process.env.NODE_ENV !== 'production') {
const queryHashes = queries.map((query) => query.queryHash)
const queryHashes = queries.map(
(query) => this.#client.defaultQueryOptions(query).queryHash,
)
if (new Set(queryHashes).size !== queryHashes.length) {
console.warn(
'[QueriesObserver]: Duplicate Queries found. This might result in unexpected behavior.',
Loading