Make this server side compatible
Closed this issue · 2 comments
bkniffler commented
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.
bkniffler commented
Excellent, thanks!