Skip to content

Conversation

@zeyap
Copy link
Contributor

@zeyap zeyap commented Nov 10, 2025

Summary:

Changelog:

[General] [Fixed] - explicitly track lifetime of NativeAnimatedNodesManager

mark the instance as destroyed with an atomic bool, and avoid passing down onRender to platform via startOnRenderCallback if instance is being destroyed

An alternative to this is referencing NativeAnimatedNodesManager instance with shared_from_this() instead of this, but that will increase binary size

Differential Revision: D86672542

Summary:
## Changelog:

[General] [Fixed] - explicitly track lifetime of NativeAnimatedNodesManager

mark the instance as destroyed with an atomic bool, and avoid passing down `onRender` to platform via `startOnRenderCallback` if instance is being destroyed

An alternative to this is referencing NativeAnimatedNodesManager instance with shared_from_this() instead of `this`, but that will increase binary size

Differential Revision: D86672542
@meta-cla meta-cla bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Nov 10, 2025
@meta-codesync
Copy link

meta-codesync bot commented Nov 10, 2025

@zeyap has exported this pull request. If you are a Meta employee, you can view the originating Diff in D86672542.

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 meta-exported p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants