diff --git a/client/routes.jsx b/client/routes.jsx index 437ae76..692af47 100644 --- a/client/routes.jsx +++ b/client/routes.jsx @@ -62,6 +62,14 @@ const createAppRouter = () => { return await getUser(); }} /> + } + loader={async () => { + const { getUser } = await import('./api/account'); + return await getUser(); + }} + /> }