GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — claude-code-source-code/src/hooks/useAfterFirstRender.ts at main · chaoswork/claude-code-source-code Expand file tree/ Copy pathuseAfterFirstRender.tsMore file actions 17 lines (16 loc) · 485 Bytes / Copy pathuseAfterFirstRender.tsFile metadata and controls17 lines (16 loc) · 485 Bytes 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 import { useEffect } from 'react' import { isEnvTruthy } from '../utils/envUtils.js' export function useAfterFirstRender(): void { useEffect(() => { if ( process.env.USER_TYPE === 'ant' && isEnvTruthy(process.env.CLAUDE_CODE_EXIT_AFTER_FIRST_RENDER) ) { process.stderr.write( `\nStartup time: ${Math.round(process.uptime() * 1000)}ms\n`, ) // eslint-disable-next-line custom-rules/no-process-exit process.exit(0) } }, []) } |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |