Skip to content

Commit f9c851e

Browse files
committed
Document expected "missing act"
1 parent b0fd654 commit f9c851e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/__tests__/end-to-end.js

+2
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ function ComponentWithLoader() {
1717
let cancelled = false
1818
fetchAMessage().then(data => {
1919
if (!cancelled) {
20+
// Will trigger "missing act" warnings in React 18 with real timers
21+
// Need to wait for an action on https://github.com/reactwg/react-18/discussions/23#discussioncomment-1087897
2022
setState({data, loading: false})
2123
}
2224
})

0 commit comments

Comments
 (0)