UNPKG

@progress/kendo-react-map

Version:
19 lines (18 loc) 708 B
/** * @license *------------------------------------------------------------------------------------------- * Copyright © 2025 Progress Software Corporation. All rights reserved. * Licensed under commercial license. See LICENSE.md in the package root for more information *------------------------------------------------------------------------------------------- */ import { canUseDOM as f } from "@progress/kendo-react-common"; const u = (o) => { let r, t = []; const a = () => r, c = (e) => { r = o(r, e), f && t.forEach((s) => s()); }, n = (e) => (t.push(e), () => t = t.filter((s) => s !== e)); return c({}), { getState: a, dispatch: c, subscribe: n }; }; export { u as default };