mirror of
https://github.com/umami-software/umami.git
synced 2026-02-15 18:15:35 +01:00
Added suspense boundary.
This commit is contained in:
parent
007625ecf7
commit
54abab0bda
1 changed files with 6 additions and 1 deletions
|
|
@ -3,6 +3,7 @@ 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();
|
||||||
|
|
@ -18,5 +19,9 @@ export default function SSOPage() {
|
||||||
}
|
}
|
||||||
}, [router, url, token]);
|
}, [router, url, token]);
|
||||||
|
|
||||||
return <Loading />;
|
return (
|
||||||
|
<Suspense>
|
||||||
|
<Loading />
|
||||||
|
</Suspense>
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue