mirror of
https://github.com/discourse/discourse.git
synced 2025-03-02 01:09:26 +00:00
We need to register a waiter so that any calls to `await settled()` will wait for the `requestAnimationFrame` call to return. Wrapping in `DEBUG` as well as `isTesting()` means that this extra logic will be totally optimized out of production builds.