Correctly listen for unmount event
This commit is contained in:
parent
48f449e6d7
commit
6b42296865
|
@ -4,7 +4,6 @@ import * as TerminalFit from 'xterm/lib/addons/fit/fit';
|
||||||
import SpinnerOverlay from '@/components/elements/SpinnerOverlay';
|
import SpinnerOverlay from '@/components/elements/SpinnerOverlay';
|
||||||
import { State, useStoreState } from 'easy-peasy';
|
import { State, useStoreState } from 'easy-peasy';
|
||||||
import { ApplicationState } from '@/state/types';
|
import { ApplicationState } from '@/state/types';
|
||||||
import { connect } from 'formik';
|
|
||||||
|
|
||||||
const theme = {
|
const theme = {
|
||||||
background: 'transparent',
|
background: 'transparent',
|
||||||
|
@ -68,7 +67,7 @@ export default () => {
|
||||||
instance.removeListener('server log', handleServerLog);
|
instance.removeListener('server log', handleServerLog);
|
||||||
instance.removeListener('console output', handleConsoleOutput);
|
instance.removeListener('console output', handleConsoleOutput);
|
||||||
}
|
}
|
||||||
});
|
}, []);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className={'text-xs font-mono relative'}>
|
<div className={'text-xs font-mono relative'}>
|
||||||
|
|
Loading…
Reference in New Issue