Home Reference Source

src/shared/utils/requestNextAnimationFrame/requestNextAnimationFrame.js

export default function requestNextAnimationFrame(callback) {
  return requestAnimationFrame(() => {
    requestAnimationFrame(callback);
  });
}