Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch: useMergeRef for forwarding ref
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
- Loading branch information