Function leptos_dom::helpers::request_animation_frame_with_handle

source ยท
pub fn request_animation_frame_with_handle(
    cb: impl FnOnce() + 'static
) -> Result<AnimationFrameRequestHandle, JsValue>
Expand description

Runs the given function between the next repaint using Window.requestAnimationFrame, returning a cancelable handle.