carbon-design-system / carbon

A design system built by IBM
https://www.carbondesignsystem.com
Apache License 2.0
7.84k stars 1.81k forks source link

Evaluate and consolidate `useMergedRefs` helpers #17234

Open tay1orjones opened 2 months ago

tay1orjones commented 2 months ago

There's been a useMergedRefs helper in the codebase for quite a while.

https://github.com/carbon-design-system/carbon/blob/ab9cd8c843d64427f496ac4ca781e165a3d07d2e/packages/react/src/internal/useMergedRefs.ts#L10-L26

With the addition of floating-ui we now have access to it's helper by the same name. This brings up a few things to consider:

github-actions[bot] commented 2 months ago

Thank you for submitting a feature request. Your proposal is open and will soon be triaged by the Carbon team.

If your proposal is accepted and the Carbon team has bandwidth they will take on the issue, or else request you or other volunteers from the community to work on this issue.