1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-18 21:09:40 +02:00
portainer/app/portainer/users/queries/queryKeys.ts
Ali 4096bb562d
feat(cache): introduce cache option [EE-6293] (#10672)
Co-authored-by: testa113 <testa113>
2023-11-22 14:21:07 +13:00

7 lines
222 B
TypeScript

import { UserId } from '../types';
export const userQueryKeys = {
base: () => ['users'] as const,
user: (id: UserId) => [...userQueryKeys.base(), id] as const,
me: () => [...userQueryKeys.base(), 'me'] as const,
};