fix: reload window on logout

This commit is contained in:
Christel Westerberg
2024-09-26 11:31:39 +02:00
parent b9aeb8ff30
commit 943184c50c
2 changed files with 14 additions and 4 deletions

View File

@@ -0,0 +1,14 @@
"use client"
import { useEffect } from "react"
import LoadingSpinner from "@/components/LoadingSpinner"
export default function LogoutInterceptedRoute() {
// Reload the browser on logout in order to flush router cache. This is to make sure we don't show stale user specific data.
useEffect(() => {
window.location.reload()
}, [])
return <LoadingSpinner />
}