Combines multiple object or callback refs into one stable callback ref. Use it when a component must forward a consumer ref while also attaching internal refs. Unlike calling mergeRefs during render, the callback identity stays stable across unrelated rerenders, so React does not detach and reattach the element.
pnpm dlx shadcn@latest add "https://astryx.atmeta.com/shadcn/hook-use-merged-refs.json"