You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
portainer/app/react/edge/edge-stacks/queries/query-keys.ts

9 lines
288 B

import { EdgeStack } from '../types';
export const queryKeys = {
base: () => ['edge-stacks'] as const,
item: (id: EdgeStack['Id']) => [...queryKeys.base(), id] as const,
file: (id: EdgeStack['Id'], version?: number) =>
[...queryKeys.item(id), 'file', { version }] as const,
};