We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b0fd654 commit f9c851eCopy full SHA for f9c851e
src/__tests__/end-to-end.js
@@ -17,6 +17,8 @@ function ComponentWithLoader() {
17
let cancelled = false
18
fetchAMessage().then(data => {
19
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
22
setState({data, loading: false})
23
}
24
})
0 commit comments