15 lines
374 B
TypeScript
15 lines
374 B
TypeScript
"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 />
|
|
}
|