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

Function resourceOptionValue

site/src/pages/WorkspacePage/useResourcesNav.ts:4–6  ·  view source on GitHub ↗
(resource: WorkspaceResource)

Source from the content-addressed store, hash-verified

2import type { WorkspaceResource } from "#/api/typesGenerated";
3import { useSearchParamsKey } from "#/hooks/useSearchParamsKey";
4export const resourceOptionValue = (resource: WorkspaceResource) => {
5 return `${resource.type}_${resource.name}`;
6};
7
8// TODO: This currently serves as a temporary workaround for synchronizing the
9// resources tab during workspace transitions. The optimal resolution involves

Callers 3

WorkspaceFunction · 0.90
useResourcesNavFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected