oneuijs/oui-dom-utils

Make this server side compatible

Closed this issue · 2 comments

This line makes oui-dom-utils throw an error on server side (and all libraries that rely on it like https://github.com/recharts/recharts/)

const requestAnimationFrame = window.requestAnimationFrame ||
window.webkitRequestAnimationFrame ||
window.mozRequestAnimationFrame;

Could you wrap it somewhere? It is only used in scrollTo anyways.

Should be fixed with the release of v0.3.6

Excellent, thanks!