MCPcopy Create free account
hub / github.com/Noumena-Network/code / componentWillUnmount

Method componentWillUnmount

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

isRawModeSupportedMethod · 0.95
writeMethod · 0.45

Tested by

no test coverage detected