Something went wrong. Try again.
source dump of claude code forked from oppi.li/claude-code
Something went wrong. Try again.
568 B · 16 lines
TypeScript
at main
1234567891011121314151617import { useSyncExternalStore } from 'react'import { compactWarningStore } from './compactWarningState.js'
/** * React hook to subscribe to compact warning suppression state. * * Lives in its own file so that compactWarningState.ts stays React-free: * microCompact.ts imports the pure state functions, and pulling React into * that module graph would drag it into the print-mode startup path. */export function useCompactWarningSuppression(): boolean { return useSyncExternalStore( compactWarningStore.subscribe, compactWarningStore.getState, )}