This repository has no description
1/**
2 * Query key factory for graph-related queries
3 * Following the pattern from other features (cards, collections, etc.)
4 */
5export const graphKeys = {
6 all: () => ['graph'] as const,
7 data: () => [...graphKeys.all(), 'data'] as const,
8 page: (page: number) => [...graphKeys.all(), 'page', page] as const,
9 user: (identifier: string) =>
10 [...graphKeys.all(), 'user', identifier] as const,
11 userPage: (identifier: string, page: number) =>
12 [...graphKeys.all(), 'user', identifier, 'page', page] as const,
13 url: (url: string, depth: number) =>
14 [...graphKeys.all(), 'url', url, 'depth', depth] as const,
15 node: (nodeId: string) => [...graphKeys.all(), 'node', nodeId] as const,
16} as const;