Added suspense boundary.

This commit is contained in:
Mike Cao 2024-02-17 10:37:29 -08:00
parent 007625ecf7
commit 54abab0bda
1 changed files with 6 additions and 1 deletions

View File

@ -3,6 +3,7 @@ import { useEffect } from 'react';
import { Loading } from 'react-basics';
import { useRouter, useSearchParams } from 'next/navigation';
import { setClientAuthToken } from 'lib/client';
import { Suspense } from 'react';
export default function SSOPage() {
const router = useRouter();
@ -18,5 +19,9 @@ export default function SSOPage() {
}
}, [router, url, token]);
return <Loading />;
return (
<Suspense>
<Loading />
</Suspense>
);
}