MCPcopy Index your code
hub / github.com/liuup/claude-code-analysis / fetchInfo

Function fetchInfo

src/components/RemoteEnvironmentDialog.tsx:48–69  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

46 t2 = () => {
47 let cancelled = false;
48 const fetchInfo = async function fetchInfo() {
49 ;
50 try {
51 const result = await getEnvironmentSelectionInfo();
52 if (cancelled) {
53 return;
54 }
55 setEnvironments(result.availableEnvironments);
56 setSelectedEnvironment(result.selectedEnvironment);
57 setSelectedEnvironmentSource(result.selectedEnvironmentSource);
58 setLoadingState(null);
59 } catch (t4) {
60 const err = t4;
61 if (cancelled) {
62 return;
63 }
64 const fetchError = toError(err);
65 logError(fetchError);
66 setError(fetchError.message);
67 setLoadingState(null);
68 }
69 };
70 fetchInfo();
71 return () => {
72 cancelled = true;

Callers 1

RemoteEnvironmentDialogFunction · 0.85

Calls 3

toErrorFunction · 0.85
logErrorFunction · 0.50

Tested by

no test coverage detected