MCPcopy Create free account
hub / github.com/coder/coder / entitlements

Function entitlements

site/src/api/queries/entitlements.ts:9–15  ·  view source on GitHub ↗
(metadata: MetadataState<Entitlements>)

Source from the content-addressed store, hash-verified

7const entitlementsQueryKey = ["entitlements"] as const;
8
9export const entitlements = (metadata: MetadataState<Entitlements>) => {
10 return cachedQuery({
11 metadata,
12 queryKey: entitlementsQueryKey,
13 queryFn: () => API.getEntitlements(),
14 });
15};
16
17export const refreshEntitlements = (queryClient: QueryClient) => {
18 return {

Callers 2

DashboardProviderFunction · 0.90
LicensesSettingsPageFunction · 0.90

Calls 1

cachedQueryFunction · 0.90

Tested by

no test coverage detected