MCPcopy Create free account
hub / github.com/bytebase/bytebase / useEnvironmentList

Function useEnvironmentList

frontend/src/react/hooks/useAppState.ts:194–201  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

192}
193
194export function useEnvironmentList() {
195 const environmentList = useAppStore((state) => state.environmentList);
196 const loadEnvironmentList = useAppStore((state) => state.loadEnvironmentList);
197 useEffect(() => {
198 void loadEnvironmentList();
199 }, [loadEnvironmentList]);
200 return environmentList;
201}
202
203export function useEnvironment(name: string | undefined) {
204 const environmentList = useEnvironmentList();

Callers 7

EnvironmentSelectFunction · 0.90
EditEnvironmentSheetFunction · 0.90
DatabaseTableViewFunction · 0.90
EnvironmentDetailFunction · 0.90
EnvironmentsPageFunction · 0.90
useEnvironmentFunction · 0.85

Calls 1

useAppStoreFunction · 0.50

Tested by

no test coverage detected