We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9ef86c7 commit f5121e1Copy full SHA for f5121e1
1 file changed
src/pure.js
@@ -109,10 +109,9 @@ const cleanup = () => {
109
Array.from(containerCache.keys()).forEach(cleanupAtContainer)
110
}
111
112
-const act = (fn) => {
113
- const value = fn && fn()
114
- if (value !== undefined && typeof value.then === 'function') {
115
- return value.then(() => tick())
+const act = async (fn) => {
+ if (fn) {
+ await fn()
116
117
return tick()
118
0 commit comments