Skip to content

Commit

Permalink
dispose likeCountAnimatorResult when aboutToDisappear
Browse files Browse the repository at this point in the history
  • Loading branch information
zmtzawqlp committed Dec 16, 2023
1 parent 2466301 commit 02e46e4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions like_button/src/main/ets/components/LikeButton.ets
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,11 @@ export struct LikeButton {
this._animatorResult.cancel();
this._animatorResult = undefined;
}

if (this._likeCountAnimatorResult != undefined) {
this._likeCountAnimatorResult.cancel();
this._likeCountAnimatorResult = undefined;
}
}

Tap() {
Expand Down

0 comments on commit 02e46e4

Please sign in to comment.