@ckeditor/ckeditor5-react
Version:
Official React component for CKEditor 5 – the best browser-based rich text editor.
10 lines (9 loc) • 431 B
TypeScript
/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md.
*/
/**
* Hook that guarantees that returns constant reference for passed function.
* Useful for preventing closures from capturing cached scope variables (avoiding the stale closure problem).
*/
export declare const useRefSafeCallback: <A extends Array<unknown>, R>(fn: (...args: A) => R) => typeof fn;