Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TanStack/query
/ createKey
Function
createKey
packages/query-test-utils/src/createKey.ts:8–11 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
6
* @returns A
new
key like `[
'key-1'
]`.
7
*/
8
export
const
createKey = (): Array<string> => {
9
keyCount++
10
return
[`key-${keyCount}`]
11
}
Callers
15
createKey.test.ts
File · 0.90
with-persist-query-client.test.ts
File · 0.90
createQueryController.test.ts
File · 0.90
createInfiniteQueryController.test-d.ts
File · 0.90
createInfiniteQueryController.test.ts
File · 0.90
infiniteQueryOptions.test-d.ts
File · 0.90
mutationOptions.test-d.ts
File · 0.90
createMutationController.test.ts
File · 0.90
useIsFetching.test.ts
File · 0.90
infiniteQueryOptions.test.ts
File · 0.90
ssr.test.ts
File · 0.90
queryOptions.test-d.ts
File · 0.90
Calls
no outgoing calls
Tested by
15
createCustomQueries
Function · 0.72
createCustomQuery
Function · 0.72
useCustomQueries
Function · 0.72
useCustomQueries
Function · 0.72
Page
Function · 0.72
Page
Function · 0.72
useCustomQuery
Function · 0.72
useCustomQueries
Function · 0.72
Page
Function · 0.72
useCustomQueries
Function · 0.72
Page
Function · 0.72
useCustomQuery
Function · 0.72