mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
f78bd0e72a
Summary: The previous implementation was incorrect causing a memory leak. In the new approach, we use a shared pointer to optional to be able to construct that ahead of time and then fill with actual value. Changelog: [Internal] Fabric-specific internal change. Reviewed By: sammy-SC Differential Revision: D21516794 fbshipit-source-id: ddcbf8a1ad2b1f629ae4ff2842edeb7bb2a275a6