how to write a clean-up for withRepeat? #2415
Unanswered
malikKartik
asked this question in
Q&A
Replies: 1 comment
-
Better late than never! `useEffect(() => {
})` |
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.
-
Do I need to clean up withRepeat when a component is unmounted or before it will be rerendered?
I am using withRepeat for an ongoing animation, whenever my application refreshes(while development) a new instance of withRepeat is started on the same shared value which results in an unexpected animation. So, I can write a cleanup for this, my question is how can I write a clean-up for this or is it actually required to write a cleanup in this case as this will happen only in development mode?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions