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

Function organizations

site/src/api/queries/organizations.ts:166–172  ·  view source on GitHub ↗
(metadata?: MetadataState<Organization[]>)

Source from the content-addressed store, hash-verified

164const notAvailable = { available: false, value: undefined } as const;
165
166export const organizations = (metadata?: MetadataState<Organization[]>) => {
167 return cachedQuery({
168 metadata: metadata ?? notAvailable,
169 queryKey: organizationsKey,
170 queryFn: () => API.getOrganizations(),
171 });
172};
173
174export const getProvisionerDaemonsKey = (
175 organization: string,

Callers 1

DashboardProviderFunction · 0.90

Calls 1

cachedQueryFunction · 0.90

Tested by

no test coverage detected