MCPcopy Create free account
hub / github.com/developmentseed/stac-react / generateCollectionQueryKey

Function generateCollectionQueryKey

src/utils/queryKeys.ts:51–53  ·  view source on GitHub ↗
(collectionId: string)

Source from the content-addressed store, hash-verified

49 * Collections are fetched by ID from /collections/{collectionId}.
50 */
51export function generateCollectionQueryKey(collectionId: string): [string, string] {
52 return ['collection', collectionId];
53}
54
55/**
56 * Generates a query key for STAC item requests.

Callers 2

queryKeys.test.tsFile · 0.90
useCollectionFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected