fix: make my pages dynamic to opt out of full router cache
This commit is contained in:
@@ -1,14 +0,0 @@
|
||||
"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 />
|
||||
}
|
||||
@@ -7,6 +7,8 @@ import { getProfile } from "@/lib/trpc/memoizedRequests"
|
||||
import { auth } from "@/auth"
|
||||
import { getLang } from "@/i18n/serverContext"
|
||||
|
||||
export const revalidate = 0
|
||||
|
||||
export default async function ProtectedLayout({
|
||||
children,
|
||||
}: React.PropsWithChildren) {
|
||||
|
||||
Reference in New Issue
Block a user