MCPcopy Index your code
hub / github.com/coder/coder / buildInfo

Function buildInfo

site/src/api/queries/buildInfo.ts:8–15  ·  view source on GitHub ↗
(metadata: MetadataState<BuildInfoResponse>)

Source from the content-addressed store, hash-verified

6const buildInfoKey = ["buildInfo"] as const;
7
8export const buildInfo = (metadata: MetadataState<BuildInfoResponse>) => {
9 // The version of the app can't change without reloading the page.
10 return cachedQuery({
11 metadata,
12 queryKey: buildInfoKey,
13 queryFn: () => API.getBuildInfo(),
14 });
15};

Callers 7

AgentVersionFunction · 0.90
DashboardProviderFunction · 0.90
NavbarFunction · 0.90
LoginPageFunction · 0.90
SetupPageFunction · 0.90
useWebpushNotificationsFunction · 0.90

Calls 1

cachedQueryFunction · 0.90

Tested by

no test coverage detected