File tree 2 files changed +2
-1
lines changed
2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ class ComponentWithLoader extends React.Component {
30
30
}
31
31
32
32
test ( 'it waits for the data to be loaded' , async ( ) => {
33
- // TODO: discussions/23#discussioncomment-812450
33
+ // TODO: https://github.com/reactwg/react-18/ discussions/23#discussioncomment-812450
34
34
jest . useFakeTimers ( )
35
35
36
36
render ( < ComponentWithLoader /> )
Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ configureDTL({
21
21
act ( ( ) => {
22
22
// TODO: Remove ReactDOM.flushSync once `act` flushes the microtask queue.
23
23
// Otherwise `act` wrapping updates that schedule microtask would need to be followed with `await null` to flush the microtask queue manually
24
+ // See https://github.com/reactwg/react-18/discussions/21#discussioncomment-796755
24
25
result = ReactDOM . flushSync ( cb )
25
26
} )
26
27
return result
You can’t perform that action at this time.
0 commit comments