MCPcopy Index your code
hub / github.com/callstack/agent-device / stopReactDevtoolsCleanup

Function stopReactDevtoolsCleanup

src/cli/commands/connection-runtime.ts:466–480  ·  view source on GitHub ↗
(options: {
  stateDir: string;
  state: Pick<RemoteConnectionState, 'remoteConfigPath' | 'session'>;
})

Source from the content-addressed store, hash-verified

464}
465
466export async function stopReactDevtoolsCleanup(options: {
467 stateDir: string;
468 state: Pick<RemoteConnectionState, 'remoteConfigPath' | 'session'>;
469}): Promise<void> {
470 try {
471 await stopReactDevtoolsCompanion({
472 projectRoot: process.cwd(),
473 stateDir: options.stateDir,
474 profileKey: options.state.remoteConfigPath,
475 consumerKey: options.state.session,
476 });
477 } catch {
478 // Connection lifecycle cleanup must stay best-effort.
479 }
480}
481
482export async function releaseRemoteConnectionLease(
483 client: AgentDeviceClient,

Callers 2

disconnectCommandFunction · 0.90

Calls 1

Tested by

no test coverage detected