💡 Add comment about intentional error propagation

This commit is contained in:
Philipp Stracker 2025-02-07 12:07:34 +01:00
parent 9c1e6f3b27
commit 35716db65a
No known key found for this signature in database

View file

@ -194,6 +194,8 @@ export const useBusyState = () => {
const withActivity = useCallback(
async ( id, description, asyncFn ) => {
startActivity( id, description );
// Intentionally does not catch errors but propagates them to the calling module.
try {
return await asyncFn();
} finally {