Closed DanielRuf closed 5 years ago
@DanielRuf we should keep these discussions over at Spectrum (whether private DM or to the channel) considering it's not really an "issue" with the library but rather discussions/planning.
Regarding your question though, I added it as a simple polyfill so that it works across all environments (node, browser, React Native). I believe it would also make testing easier as well. I'm open to removing it if we can cover all the use cases without it.
It is an incredibly tiny library and doesn't add significant overhead.
See current
future
branch.https://caniuse.com/#feat=requestanimationframe
Also we could directly integrate it if needed. Or people could polyfill it if needed.