From 26604b3ff09bf26961286eeaf2b696cc2e2e5139 Mon Sep 17 00:00:00 2001 From: Prince Muel Date: Fri, 12 May 2023 02:48:18 +0100 Subject: [PATCH] feat: add prefetch component to route Signed-off-by: Prince Muel --- src/routes/index.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/routes/index.tsx b/src/routes/index.tsx index 13afd46..94afbfc 100644 --- a/src/routes/index.tsx +++ b/src/routes/index.tsx @@ -1,10 +1,11 @@ import { Layout } from '@src/components'; +import Prefetch from '@src/lib/middleware/prefetch'; import { Route, createBrowserRouter, createRoutesFromElements, } from 'react-router-dom'; -import { PersistLogin, RequireAuth } from '../lib'; +import { PersistLogin } from '../lib'; import { LoginRoute, RegisterRoute } from './auth'; import { HomeRoute } from './home'; import { @@ -21,7 +22,7 @@ export const router = createBrowserRouter( } /> }> - }> + }> } />