Skip to content

Commit

Permalink
Adding comments
Browse files Browse the repository at this point in the history
  • Loading branch information
mattgperry committed Dec 13, 2022
1 parent 5ba38d3 commit 9ec28b0
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -24,6 +24,9 @@ export function handoffOptimizedAppearAnimation(
* it synchronously would prevent subsequent transforms from handing off.
*/
sync.render(() => {
/**
* Animation.cancel() throws so it needs to be wrapped in a try/catch
*/
try {
animation.cancel()
MotionAppearAnimations.delete(animationId)
Expand Down

0 comments on commit 9ec28b0

Please sign in to comment.