diff --git a/client/routes.jsx b/client/routes.jsx index a98bc04d..43c1918d 100644 --- a/client/routes.jsx +++ b/client/routes.jsx @@ -22,10 +22,11 @@ const checkAuth = (store) => { store.dispatch(getUser()); }; +// This short-circuit seems unnecessary - using the mobile navigator (future) should prevent this from being called const onRouteChange = (store) => { - // FIXME: This seems unnecessary - using the mobile navigator should prevent this from being called const path = window.location.pathname; if (path.includes('/mobile')) return; + store.dispatch(stopSketch()); };