MCPcopy Index your code
hub / github.com/codeaashu/claude-code / componentWillUnmount

Method componentWillUnmount

src/ink/components/App.tsx:187–205  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

185 }
186 }
187 override componentWillUnmount() {
188 if (this.props.stdout.isTTY) {
189 this.props.stdout.write(SHOW_CURSOR);
190 }
191
192 // Clear any pending timers
193 if (this.incompleteEscapeTimer) {
194 clearTimeout(this.incompleteEscapeTimer);
195 this.incompleteEscapeTimer = null;
196 }
197 if (this.pendingHyperlinkTimer) {
198 clearTimeout(this.pendingHyperlinkTimer);
199 this.pendingHyperlinkTimer = null;
200 }
201 // ignore calling setRawMode on an handle stdin it cannot be called
202 if (this.isRawModeSupported()) {
203 this.handleSetRawMode(false);
204 }
205 }
206 override componentDidCatch(error: Error) {
207 this.handleExit(error);
208 }

Callers

nothing calls this directly

Calls 2

isRawModeSupportedMethod · 0.95
writeMethod · 0.45

Tested by

no test coverage detected