Skip to content

Commit a69597a

Browse files
Updated dependencies;
Fixed outer progress calculation for async functions decorated with the `useAsyncEffect` hook;
1 parent 782bccb commit a69597a

File tree

4 files changed

+124
-104
lines changed

4 files changed

+124
-104
lines changed

lib/use-async-effect.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ const useAsyncCallback = (generator, options) => {
273273
canceled
274274
})
275275
}
276-
}).weight(0);
276+
}).weight(0).aggregate();
277277

278278
promises.push(promise);
279279

@@ -285,7 +285,7 @@ const useAsyncCallback = (generator, options) => {
285285
const promise = resolveGenerator().finally(() => {
286286
removeElement(promises, promise);
287287
combine && argsToPromiseMap.delete(promise);
288-
}).weight(0);
288+
}).weight(0).aggregate();
289289

290290
promises.push(promise);
291291

0 commit comments

Comments
 (0)