Skip to content

Commit

Permalink
Document expected "missing act"
Browse files Browse the repository at this point in the history
  • Loading branch information
eps1lon committed Sep 12, 2021
1 parent b0fd654 commit f9c851e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/__tests__/end-to-end.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ function ComponentWithLoader() {
let cancelled = false
fetchAMessage().then(data => {
if (!cancelled) {
// Will trigger "missing act" warnings in React 18 with real timers
// Need to wait for an action on https://github.com/reactwg/react-18/discussions/23#discussioncomment-1087897
setState({data, loading: false})
}
})
Expand Down

0 comments on commit f9c851e

Please sign in to comment.