fix(sprint-5): AbortSignal.timeout(8s) en fetch de ProfileSheet — evita freeze por modal bloqueada
Some checks failed
/ Deploy to Cloudflare Pages (push) Has been cancelled
Some checks failed
/ Deploy to Cloudflare Pages (push) Has been cancelled
This commit is contained in:
@@ -72,6 +72,10 @@ export function ProfileSheet({ open, onOpenChange }: ProfileSheetProps) {
|
|||||||
name: name.trim(),
|
name: name.trim(),
|
||||||
company: company.trim() || null,
|
company: company.trim() || null,
|
||||||
}),
|
}),
|
||||||
|
// Timeout de 8s: si Supabase no responde (cold start, red lenta, etc.),
|
||||||
|
// el catch muestra un mensaje de error y libera el botón.
|
||||||
|
// Sin esto, la modal queda abierta indefinidamente bloqueando todo el UI.
|
||||||
|
signal: AbortSignal.timeout(8000),
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user