Skip to content

Commit a8f5db0

Browse files
authored
chore(query-core): rename QueryStore's methods' parameter queryKey as queryHash correctly (TanStack#6661)
1 parent 22f7f76 commit a8f5db0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/query-core/src/queryCache.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,10 @@ export type QueryCacheNotifyEvent =
8080
type QueryCacheListener = (event: QueryCacheNotifyEvent) => void
8181

8282
export interface QueryStore {
83-
has: (queryKey: string) => boolean
84-
set: (queryKey: string, query: Query) => void
85-
get: (queryKey: string) => Query | undefined
86-
delete: (queryKey: string) => void
83+
has: (queryHash: string) => boolean
84+
set: (queryHash: string, query: Query) => void
85+
get: (queryHash: string) => Query | undefined
86+
delete: (queryHash: string) => void
8787
values: () => IterableIterator<Query>
8888
}
8989

0 commit comments

Comments
 (0)