Skip to content

Commit

Permalink
Add issue link for memory leak issue
Browse files Browse the repository at this point in the history
  • Loading branch information
layacat committed Oct 8, 2024
1 parent 622b892 commit c2ebaad
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/Lottie/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ function Lottie({source, webStyle, shouldLoadAfterInteractions, ...props}: Props
}, [browser, navigationContainerRef, navigator]);

// If user is being navigated away, let pause the animation to prevent memory leak.
// see issue: https://github.com/Expensify/App/issues/36645
useEffect(() => {
if (!animationRef.current || !hasNavigatedAway) {
return;
Expand Down

0 comments on commit c2ebaad

Please sign in to comment.