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 7d57396de8
commit e9c7b9d600
5 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -12,7 +12,7 @@ export function MediaConfigLoader({ children }: MediaConfigLoaderProps) {
const [state, load] = useAsyncCallback(useCallback(() => mx.getMediaConfig(), [mx]));
useEffect(() => {
load();
load().catch(() => {});
}, [load]);
return children(state.status === AsyncStatus.Success ? state.data : undefined);