Skip to content

Fix AnimatedEvent leaking topScrollEnded handler#46576

Closed
javache wants to merge 1 commit into
facebook:mainfrom
javache:export-D63029768
Closed

Fix AnimatedEvent leaking topScrollEnded handler#46576
javache wants to merge 1 commit into
facebook:mainfrom
javache:export-D63029768

Conversation

@javache
Copy link
Copy Markdown
Member

@javache javache commented Sep 19, 2024

Summary:
We automatically add this handler in addAnimatedEventToView but we do not remove it in removeAnimatedEventFromView, which causes us to leak it. This is especially bad as we attach and detach the event handler multiple times while rendering.

Changelog: [Internal]

Differential Revision: D63029768

Summary:
We automatically add this handler in `addAnimatedEventToView` but we do not remove it in `removeAnimatedEventFromView`, which causes us to leak it. This is especially bad as we attach and detach the event handler multiple times while rendering.

Changelog: [Internal]

Differential Revision: D63029768
@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. p: Facebook Partner: Facebook Partner labels Sep 19, 2024
@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D63029768

@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request has been merged in 5f49e27.

@react-native-bot
Copy link
Copy Markdown
Collaborator

This pull request was successfully merged by @javache in 5f49e27

When will my fix make it into a release? | How to file a pick request?

@javache javache deleted the export-D63029768 branch September 26, 2024 16:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged This PR has been merged. p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants