Skip to content

Commit 6cbc982

Browse files
committed
act-compat change
1 parent b08dbfe commit 6cbc982

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/act-compat.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,10 @@ async function asyncActPolyfill(cb) {
5656
)
5757
youHaveBeenWarned = true
5858
}
59-
await cb()
59+
const result = await cb()
6060
// make all effects resolve after
6161
act(() => {})
62+
return result
6263
}
6364

6465
// istanbul ignore next

0 commit comments

Comments
 (0)