UNPKG

@progress/kendo-react-common

Version:

React Common package delivers common utilities that can be used with the KendoReact UI components. KendoReact Common Utilities package

26 lines (25 loc) 751 B
/** * @license *------------------------------------------------------------------------------------------- * Copyright © 2026 Progress Software Corporation. All rights reserved. * Licensed under commercial license. See LICENSE.md in the package root for more information *------------------------------------------------------------------------------------------- */ "use client"; import * as a from "react"; const o = (s, r) => { const t = a.useRef(void 0), [u, n] = a.useState(s), i = (e) => { t.current = e, n(e); }; return t.current = void 0, { get value() { return t.current !== void 0 ? t.current : r !== void 0 ? r : u; }, set value(e) { i(e); } }; }; export { o as useImmediateInheritState };