mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
0aa8e25deb
Summary: Changelog: [Internal] - Replace `useImperativeHandle` usage with new `useMergeRef` which will keep both the forwarded and internal ref handle up to date (in case the instance ever changes). That being said, this change was not motivated in fear of a stale ref but more an intention to show that `useImperativeHandle`'s use case is more about creating a selective API and `useMergeRef` is better suited for publishing ref updates. Reviewed By: yungsters Differential Revision: D28950632 fbshipit-source-id: 594afda02693545aab77f24566180c338b58bb8b