Hi @Rodrigo,
I did not realize that cleaning the context in a useEffect was this important this is why I did not do it in the first place. Thank you for the advice, I'll d it from now on.
However, this did not fix my issue.
Thank you for your help, I think I'm gonna use a different animation as @mvaneijgensuggested.