MCPcopy Create free account
hub / github.com/codeaashu/claude-code / InstallOnMount

Function InstallOnMount

src/commands/ide/ide.tsx:395–418  ·  view source on GitHub ↗
(t0)

Source from the content-addressed store, hash-verified

393 };
394}
395function InstallOnMount(t0) {
396 const $ = _c(4);
397 const {
398 ide,
399 onInstall
400 } = t0;
401 let t1;
402 let t2;
403 if ($[0] !== ide || $[1] !== onInstall) {
404 t1 = () => {
405 onInstall(ide);
406 };
407 t2 = [ide, onInstall];
408 $[0] = ide;
409 $[1] = onInstall;
410 $[2] = t1;
411 $[3] = t2;
412 } else {
413 t1 = $[2];
414 t2 = $[3];
415 }
416 useEffect(t1, t2);
417 return null;
418}
419export async function call(onDone: (result?: string, options?: {
420 display?: CommandResultDisplay;
421}) => void, context: LocalJSXCommandContext, args: string): Promise<React.ReactNode | null> {

Callers

nothing calls this directly

Calls 1

onInstallFunction · 0.85

Tested by

no test coverage detected