diff --git a/src/App.tsx b/src/App.tsx index 43034fa..cdd883f 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -26,6 +26,7 @@ import { PrivateRoute, PublicRoute } from "hoc/AuthRoutes"; import pToP from "hoc/paramsToProps"; import AppWrapper from "./App.styled"; +import Reload from "./components/pages/Reload"; const App = () => ( @@ -55,6 +56,7 @@ const App = () => ( + diff --git a/src/components/pages/Reload.tsx b/src/components/pages/Reload.tsx new file mode 100644 index 0000000..64824e7 --- /dev/null +++ b/src/components/pages/Reload.tsx @@ -0,0 +1,11 @@ +import React, { useEffect } from "react"; + +const Reload: React.FC = () => { + useEffect(() => { + location.reload(); + }, []); + + return <>; +}; + +export default Reload; diff --git a/src/components/pages/index.ts b/src/components/pages/index.ts index 351637e..3c7ca99 100644 --- a/src/components/pages/index.ts +++ b/src/components/pages/index.ts @@ -26,3 +26,4 @@ export const NotFound = loadable(/* webpackPrefetch: true */ () => import("./Not // export const AdminPage = loadable(/* webpackPrefetch: true */ () => import("./AdminPage")); export const SearchPage = loadable(/* webpackPrefetch: true */ () => import("./SearchPage")); export const ApiPage = loadable(/* webpackPrefetch: true */ () => import("./ApiPage")); +export const ReloadPage = loadable(/* webpackPrefetch: true */ () => import("./Reload"));