fix: suppress uncaught promise rejections from fire-and-forget useAsync calls in useEffect

This commit is contained in:
root
2026-05-15 19:07:13 -04:00
parent 74963b6bf2
commit 12541cf987
5 changed files with 5 additions and 5 deletions
@@ -28,7 +28,7 @@ export const UrlPreviewCard = as<'div', { url: string; ts: number }>(
);
useEffect(() => {
loadPreview();
loadPreview().catch(() => {});
}, [loadPreview]);
if (previewStatus.status === AsyncStatus.Error) return null;