MCPcopy Create free account
hub / github.com/codename-co/stack / check

Function check

packages/website/src/components/Debug.tsx:13–22  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11 const t = useTranslations(lang);
12
13 const check = async () => {
14 const connected = await isApiAccessible();
15 console.log("API is accessible:", connected);
16 setConnected(connected);
17
18 globalThis.document.body.setAttribute(
19 "data-connected",
20 connected.toString(),
21 );
22 };
23
24 useEffect(() => {
25 check();

Callers 1

DebugFunction · 0.85

Calls 2

isApiAccessibleFunction · 0.90
logMethod · 0.80

Tested by

no test coverage detected