mirror of
https://github.com/kremalicious/umami.git
synced 2024-11-22 18:00:17 +01:00
Moved suspense boundary.
This commit is contained in:
parent
fb72485f88
commit
709f46a391
@ -3,7 +3,6 @@ import { useEffect } from 'react';
|
|||||||
import { Loading } from 'react-basics';
|
import { Loading } from 'react-basics';
|
||||||
import { useRouter, useSearchParams } from 'next/navigation';
|
import { useRouter, useSearchParams } from 'next/navigation';
|
||||||
import { setClientAuthToken } from 'lib/client';
|
import { setClientAuthToken } from 'lib/client';
|
||||||
import { Suspense } from 'react';
|
|
||||||
|
|
||||||
export default function SSOPage() {
|
export default function SSOPage() {
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
@ -19,9 +18,5 @@ export default function SSOPage() {
|
|||||||
}
|
}
|
||||||
}, [router, url, token]);
|
}, [router, url, token]);
|
||||||
|
|
||||||
return (
|
return <Loading />;
|
||||||
<Suspense>
|
|
||||||
<Loading />
|
|
||||||
</Suspense>
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,10 @@
|
|||||||
|
import { Suspense } from 'react';
|
||||||
import SSOPage from './SSOPage';
|
import SSOPage from './SSOPage';
|
||||||
|
|
||||||
export default function () {
|
export default function () {
|
||||||
return <SSOPage />;
|
return (
|
||||||
|
<Suspense>
|
||||||
|
<SSOPage />
|
||||||
|
</Suspense>
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user