Skip to content

Commit 9617a43

Browse files
pierrezimmermannbammdjastrzebski
authored andcommitted
refactor: add comment in asyncWrapper
1 parent c9b176c commit 9617a43

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/helpers/asyncWrapper.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ export const asyncWrapper = async <T>(
2626

2727
let result: T;
2828

29+
// Wrapping with act for react version 16.9 to 17.x
2930
await act(async () => {
3031
result = await callback();
3132
});

0 commit comments

Comments
 (0)