Skip to content

Commit

Permalink
kill animation on unmount
Browse files Browse the repository at this point in the history
  • Loading branch information
julianbenegas committed Jul 16, 2020
1 parent 953d70d commit f383d48
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions components/svgs/network.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,10 @@ const NetworkSvg = ({ pushSx }: Props) => {
},
"<"
)

return () => {
tl.kill()
}
}, [svgRef])

return (
Expand Down

0 comments on commit f383d48

Please sign in to comment.