completionId: cgen-ea42ce9fdd3e4bb1bca7d445bac7edc8
cgen-ea42ce9fdd3e4bb1bca7d445bac7edc8
This commit is contained in:
parent
ba8bb1da59
commit
d49ec71450
1 changed files with 5 additions and 0 deletions
|
|
@ -367,6 +367,11 @@ export default function Dashboard() {
|
||||||
|
|
||||||
const userId = user!.id;
|
const userId = user!.id;
|
||||||
|
|
||||||
|
// Wrap entire operation in 15s timeout to prevent hanging
|
||||||
|
const timeoutPromise = new Promise((_, reject) =>
|
||||||
|
setTimeout(() => reject(new Error("Dashboard loading timeout")), 15000)
|
||||||
|
);
|
||||||
|
|
||||||
// Parallelize all independent data fetches
|
// Parallelize all independent data fetches
|
||||||
const [
|
const [
|
||||||
projectsResult,
|
projectsResult,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue