[Dev] Fix unnecessary reset of animationRef (#2578)
This commit is contained in:
parent
d228deb66c
commit
a0b671c6f7
@ -177,10 +177,7 @@ const AnimatedSticker: FC<OwnProps> = ({
|
|||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
return () => {
|
return () => {
|
||||||
if (animationRef.current) {
|
animationRef.current?.removeContainer(containerId);
|
||||||
animationRef.current.removeContainer(containerId);
|
|
||||||
animationRef.current = undefined;
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
}, [containerId]);
|
}, [containerId]);
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user