MCPcopy Create free account
hub / github.com/dailydotdev/apps / userWorldQueryKey

Function userWorldQueryKey

packages/webapp/components/world/useUserWorld.ts:43–47  ·  view source on GitHub ↗
(userId?: string)

Source from the content-addressed store, hash-verified

41}
42
43export const userWorldQueryKey = (userId?: string): unknown[] =>
44 generateQueryKey(
45 RequestKey.UserWorld,
46 userId ? { id: userId } : undefined,
47 ) as unknown[];
48
49export interface UserWorldEntry {
50 districts: WorldDistrict[];

Callers 5

ProfileSideToggleFunction · 0.90
useUpdateWorldSettingsFunction · 0.90
useWorldPlateFunction · 0.90
useUserWorldFunction · 0.85

Calls 1

generateQueryKeyFunction · 0.90

Tested by

no test coverage detected