Skip to content

Commit 653d33f

Browse files
committed
chore: remove unused variables
those were only needed on main for keepPreviousData, which doesn't exist anymore
1 parent de18e34 commit 653d33f

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

packages/query-core/src/queriesObserver.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -158,13 +158,6 @@ export class QueriesObserver extends Subscribable<QueriesObserverListener> {
158158
(defaultedOptions) => !matchedQueryHashes.has(defaultedOptions.queryHash),
159159
)
160160

161-
const matchingObserversSet = new Set(
162-
matchingObservers.map((match) => match.observer),
163-
)
164-
const unmatchedObservers = prevObservers.filter(
165-
(prevObserver) => !matchingObserversSet.has(prevObserver),
166-
)
167-
168161
const getObserver = (options: QueryObserverOptions): QueryObserver => {
169162
const defaultedOptions = this.#client.defaultQueryOptions(options)
170163
const currentObserver = this.#observers.find(

0 commit comments

Comments
 (0)