Correctly listen for unmount event

This commit is contained in:
Dane Everitt 2019-06-29 17:48:35 -07:00
parent 48f449e6d7
commit 6b42296865
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53

View file

@ -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'}>