fix: increase EventEmitter limit (#237)

This commit is contained in:
Devansh Jain
2025-12-16 10:47:57 -08:00
committed by GitHub
parent c446113067
commit a0b3e2b098
2 changed files with 6 additions and 6 deletions

View File

@@ -24,7 +24,12 @@ export default class App extends PureComponent {
error: undefined,
};
rawModeEnabledCount = 0;
internal_eventEmitter = new EventEmitter();
// Increase max listeners to accommodate multiple useInput hooks across components
internal_eventEmitter = (() => {
const emitter = new EventEmitter();
emitter.setMaxListeners(20);
return emitter;
})();
isRawModeSupported() {
return this.props.stdin.isTTY;
}