9 lines
272 B
TypeScript
9 lines
272 B
TypeScript
|
// Copyright 2021 Signal Messenger, LLC
|
||
|
// SPDX-License-Identifier: AGPL-3.0-only
|
||
|
|
||
|
import { useMemo } from 'react';
|
||
|
import { createRefMerger } from '../util/refMerger';
|
||
|
|
||
|
export const useRefMerger = (): ReturnType<typeof createRefMerger> =>
|
||
|
useMemo(createRefMerger, []);
|