This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // SPDX-FileCopyrightText: 2025 YarnSphere | |
| // SPDX-License-Identifier: MIT | |
| import * as React from "react"; | |
| type Ref<T> = NonNullable<React.Ref<T>>; | |
| type Cleanups<T> = Map<React.RefCallback<T>, () => void>; | |
| /** | |
| * Combines multiple references into a single stable callback reference while |