From 368fcb73e104c295614132a5bfe332ba44170a82 Mon Sep 17 00:00:00 2001 From: Lee Euije Date: Fri, 15 Mar 2024 22:39:06 +0900 Subject: [PATCH] =?UTF-8?q?[fix]=20useSearchParams=20Suspense=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/event/university/Booth/page.tsx | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/app/event/university/Booth/page.tsx b/app/event/university/Booth/page.tsx index b533fa3..bb49306 100644 --- a/app/event/university/Booth/page.tsx +++ b/app/event/university/Booth/page.tsx @@ -7,10 +7,21 @@ import { } from '@/util/string'; import { sendGTMEvent } from '@next/third-parties/google'; import { useSearchParams } from 'next/navigation'; -import React, { useEffect } from 'react'; +import React, { Suspense, useEffect } from 'react'; import { isAndroid, isIOS } from 'react-device-detect'; export default function Page() { + return ( + <> +
{'redirecting...'}
+ + + + + ); +} + +const GTMComponent = () => { const params = useSearchParams(); useEffect(() => { @@ -34,9 +45,5 @@ export default function Page() { } }, [params]); - return ( - <> -
{'redirecting...'}
- - ); -} + return
{'data sending..'}
; +};