render() { libui.Ui.onShouldQuit(() => { this.props.onShouldQuit(); disconnectDevtools(); libui.stopLoop(); }); this.renderChildNode(this); }
update(oldProps, newProps) { if (newProps.onShouldQuit !== oldProps.onShouldQuit) { libui.Ui.onShouldQuit(() => { this.newProps.onShouldQuit(); libui.stopLoop(); }); } }