MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / useAllClusters

Function useAllClusters

console/src/store/allClusters.ts:47–58  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

45}
46
47export function useAllClusters() {
48 const result = useAtomValue(allClusters);
49 return React.useMemo(
50 () => ({
51 ...result,
52 isError: Boolean(result.error),
53 getClusterById: (clusterId: string) =>
54 result.data.find((c) => c.id === clusterId),
55 }),
56 [result],
57 );
58}

Callers 11

ClusterMetricsInnerFunction · 0.90
ClusterSidebarItemFunction · 0.90
ShellHeaderFunction · 0.90
useObjectsByTypeFunction · 0.90
DataflowVisualizerFunction · 0.90
IndexListInnerFunction · 0.90
ClusterOrRedirectFunction · 0.90
ClusterOverviewFunction · 0.90
ObjectDetailsCardFunction · 0.90
ReplicaMetricsListFunction · 0.90

Calls 2

BooleanClass · 0.50
findMethod · 0.45

Tested by

no test coverage detected