Use preact `rerender` after simulate instead?
gnarf opened this issue · comments
Mx Corey Frang commented
preact-render-spy/src/preact-render-spy.js
Line 105 in 8752080
This timeout seems really arbitrary, and what if you have fake timers going or something?
We could instead use preact.rerender
which will render all dirty items in the queue: https://github.com/developit/preact/blob/d213b086e36e0ec3c4700d36a5e6a3368af74894/src/render-queue.js#L15