diff --git a/src/App/App.js b/src/App/App.js index 74c0bafd9..86ef2b1c2 100644 --- a/src/App/App.js +++ b/src/App/App.js @@ -5,12 +5,12 @@ const routerViewsConfig = require('./routerViewsConfig'); const styles = require('./styles'); const App = () => { - const services = React.useMemo(() => ({ - keyboardNavigation: new KeyboardNavigation() - }), []); const onPathNotMatch = React.useCallback(() => { window.history.back(); }, []); + const services = React.useMemo(() => ({ + keyboardNavigation: new KeyboardNavigation() + }), []); React.useEffect(() => { services.keyboardNavigation.start(); }, [services]);