From 2e25b35709bc9020d520e9d0eb8fcebedd4280bb Mon Sep 17 00:00:00 2001 From: Francesco Sansalvadore Date: Thu, 9 Mar 2023 16:36:19 +0100 Subject: [PATCH] LW7: fix dynamic page state update on same page navigation --- apps/www/pages/launch-week/tickets/[username].tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/www/pages/launch-week/tickets/[username].tsx b/apps/www/pages/launch-week/tickets/[username].tsx index f0b3c4f8e56..137299ba799 100644 --- a/apps/www/pages/launch-week/tickets/[username].tsx +++ b/apps/www/pages/launch-week/tickets/[username].tsx @@ -27,7 +27,7 @@ const supabaseAdmin = createClient( 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6Im9idWxkYW5ycHRsb2t0eGNmZnZuIiwicm9sZSI6ImFub24iLCJpYXQiOjE2Njk3MjcwMTIsImV4cCI6MTk4NTMwMzAxMn0.SZLqryz_-stF8dgzeVXmzZWPOqdOrBwqJROlFES8v3I' ) -export default function TicketShare({ user, users }: Props) { +export default function UsernamePage({ user, users }: Props) { const { username, ticketNumber, name, golden, referrals, bg_image_id } = user const [supabase] = useState(() => @@ -140,6 +140,7 @@ export const getStaticProps: GetStaticProps = async ({ params }) => { bg_image_id, }, users, + key: username, }, revalidate: 5, }