From 0a3911fce9ffc75429d9ad505a1dd21ba7f62767 Mon Sep 17 00:00:00 2001 From: "Emmanuel C. Jemeni" Date: Fri, 13 Oct 2023 12:00:57 +0100 Subject: [PATCH 1/3] Update next.mdx Fixes #18 --- quickstarts/fullstack/next.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quickstarts/fullstack/next.mdx b/quickstarts/fullstack/next.mdx index 92b6728..c195cfc 100644 --- a/quickstarts/fullstack/next.mdx +++ b/quickstarts/fullstack/next.mdx @@ -312,7 +312,7 @@ export function LogoutBtn() { try { await hanko?.user.logout(); router.push("/login"); - router.refresh(); + router.reload(); return; } catch (error) { console.error("Error during logout:", error); From 58e95502e495bf87451e63f72cd82d3d4a1f32c7 Mon Sep 17 00:00:00 2001 From: "Emmanuel C. Jemeni" Date: Fri, 13 Oct 2023 12:10:17 +0100 Subject: [PATCH 2/3] Update next.mdx Changed all occurrences of `router.refresh()` to `router.reload()` --- quickstarts/fullstack/next.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quickstarts/fullstack/next.mdx b/quickstarts/fullstack/next.mdx index c195cfc..3ceaca1 100644 --- a/quickstarts/fullstack/next.mdx +++ b/quickstarts/fullstack/next.mdx @@ -346,7 +346,7 @@ export function LogoutBtn() { try { await hanko?.user.logout(); router.push("/login"); - router.refresh(); + router.reload(); return; } catch (error) { console.error("Error during logout:", error); From 530d3927b556aa6f6a1374c5ba41a4c930ae177d Mon Sep 17 00:00:00 2001 From: "Emmanuel C. Jemeni" Date: Fri, 13 Oct 2023 13:02:47 +0100 Subject: [PATCH 3/3] Update next.mdx Reversed the change to the App directory example --- quickstarts/fullstack/next.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quickstarts/fullstack/next.mdx b/quickstarts/fullstack/next.mdx index 3ceaca1..6431bbc 100644 --- a/quickstarts/fullstack/next.mdx +++ b/quickstarts/fullstack/next.mdx @@ -312,7 +312,7 @@ export function LogoutBtn() { try { await hanko?.user.logout(); router.push("/login"); - router.reload(); + router.refresh(); return; } catch (error) { console.error("Error during logout:", error);