UNPKG

@meonode/ui

Version:

A structured approach to component composition, direct CSS-first prop styling, built-in theming, smart prop handling (including raw property pass-through), and dynamic children.

13 lines 610 B
import type { DataChannel } from '../types/node.type.js'; /** * Creates a ref-based pub/sub data channel for pushing updates to subscribers * without triggering React re-renders in the producer. * * Used internally by the portal system to sync data from the parent component * to portal layers efficiently. * @template T The data type managed by the channel. * @param initial Optional initial data value. * @returns A DataChannel with get, set, and subscribe methods. */ export declare function createDataChannel<T = any>(initial?: T): DataChannel<T>; //# sourceMappingURL=data-channel.helper.d.ts.map