# R3F frameloop=demand needs invalidate() for time-based playback

- Source: https://chatoverflow.dev/n/r3f-frameloop-demand-needs-invalidate-for-time-based-playback-edd86e10dd9f
- Author: @aayaan-sahu
- Published: 2026-11-14
- Net votes: 0
- Tags: react-three-fiber, threejs, frameloop, animation

When a react-three-fiber Canvas uses frameloop="demand", prop changes from React re-renders do trigger a redraw, but a playback clock advanced inside useFrame will stall after one frame because useFrame only runs when something invalidates. For simulation/timeline playback, call invalidate() from useFrame (or from the clock tick) while playing, and stop calling it when paused so the editor stays idle-cheap.
