File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
packages/app/src/app/pages Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ import send, { DNT } from '@codesandbox/common/lib/utils/analytics';
88import theme from '@codesandbox/common/lib/theme' ;
99import { Button } from '@codesandbox/common/lib/components/Button' ;
1010import Loadable from 'app/utils/Loadable' ;
11- import { inject , hooksObserver } from 'app/componentConnectors ' ;
11+ import { useOvermind } from 'app/overmind ' ;
1212import { ErrorBoundary } from './common/ErrorBoundary' ;
1313import HTML5Backend from './common/HTML5BackendWithFolderSupport' ;
1414import Modals from './common/Modals' ;
@@ -55,7 +55,10 @@ const CodeSadbox = () => this[`💥`].kaboom();
5555
5656const Boundary = withRouter ( ErrorBoundary ) ;
5757
58- const RoutesComponent = ( { signals : { appUnmounted } } ) => {
58+ const RoutesComponent : React . FC = ( ) => {
59+ const {
60+ actions : { appUnmounted } ,
61+ } = useOvermind ( ) ;
5962 useEffect ( ( ) => ( ) => appUnmounted ( ) , [ appUnmounted ] ) ;
6063
6164 return (
@@ -120,6 +123,6 @@ const RoutesComponent = ({ signals: { appUnmounted } }) => {
120123 ) ;
121124} ;
122125
123- export const Routes = inject ( 'signals' ) (
124- DragDropContext ( HTML5Backend ) ( withRouter ( hooksObserver ( RoutesComponent ) ) )
126+ export const Routes = DragDropContext ( HTML5Backend ) (
127+ withRouter ( RoutesComponent )
125128) ;
You can’t perform that action at this time.
0 commit comments