Closed dwjohnston closed 2 years ago
This appears not to be a React specific thing, I've reproduced the same thing in vanilla:
https://github.com/dwjohnston/ccapture-test/tree/no-react
Nope: calling the capture
method seems like it is definitely required to keep the animation displaying:
https://github.com/dwjohnston/ccapture-test/commit/151433c0750478591c9b18874bb4ae7693ebe31d
Aaaand fixed, works fine with React.
https://github.com/dwjohnston/ccapture-test/commit/25cdafdbbf357ed69f4e876a646d3a4f1364c6b9
Feel free to use this as an example.
Great library!
I have a repro for this here:
https://github.com/dwjohnston/ccapture-test
I am trying to do a very basic use of this in React.
Here's my example code:
When you press the
start
button (and call capturer.start)window.requestAnimationFrame
stops working.Any idea why this is?