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