From c2e6105aff6fb6ccfa8bfbaafecd3bccd393bc2f Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Fri, 28 Mar 2025 13:10:47 +0100 Subject: [PATCH] Reload page when signedIn state change --- virtweb_frontend/src/App.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/virtweb_frontend/src/App.tsx b/virtweb_frontend/src/App.tsx index 1873c3c..96bea21 100644 --- a/virtweb_frontend/src/App.tsx +++ b/virtweb_frontend/src/App.tsx @@ -51,7 +51,10 @@ export function App() { const context: AuthContext = { signedIn: signedIn, - setSignedIn: (s) => { setSignedIn(s); }, + setSignedIn: (s) => { + setSignedIn(s); + location.reload(); + }, }; const router = createBrowserRouter(