There was an error while loading. Please reload this page.
1 parent d2b5137 commit 68c6c17Copy full SHA for 68c6c17
src/wait-for.js
@@ -95,10 +95,6 @@ function waitFor(
95
if (!usingFakeTimers) {
96
clearInterval(intervalId)
97
observer.disconnect()
98
-
99
- // Call also the disconnect method on setImmediate for projects not using the MutationObersver implementation of jsdom.
100
- // But using for example `@sheerun/mutationobserver-shim` which provokes infinite loop when being called immediately on `onDone` function
101
- setImmediate(() => observer.disconnect())
102
}
103
104
if (error) {
0 commit comments