Replies: 1 comment
-
I realised it wasn't actually unmounting! my mistake. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I've got any animation that plays on a loading screen when it's loading and the component is unmounted when it's not.
I thought, wrongly, that once the component was unmounted the Animation would stop - but I noticed a spike in CPU usage on the app and I narrowed to this animation.
Unfortunately
cancelAnimation
doesn't seem to actually stop the animation, I've confirmed the component gets unmounted but unless I set a limited number of reps - the animation code never actually stops (and I see CPU spikes of 50% on an iPhone 12 when running.What am I doing wrong?
Here's my code
Beta Was this translation helpful? Give feedback.
All reactions