@espressif/rainmaker-base-cdf
    Preparing search index...

    Interface GroupStoreCallbacks

    interface GroupStoreCallbacks {
        getCurrentHome?: () => ESPCDFGroup | null;
        getNodeById?: (nodeId: string) => ESPCDFNode | undefined;
        isTreeSynced?: () => boolean;
        markTreeSynced?: () => void;
        onNodeUpdate?: (update: Record<string, any>) => void;
        persistSnapshot?: () => void;
        addGroup(group: ESPCDFGroup): void;
        addNodesToGroup(
            groupId: string,
            nodes: ESPCDFNode[],
            options?: ESPCDFAttachNodesOptions,
        ): void;
        setCurrentHomeId(id: string | null): void;
        setGroupsList(groups: ESPCDFGroup[]): void;
    }
    Index

    Properties

    getCurrentHome?: () => ESPCDFGroup | null

    The currently selected home, if any.

    getNodeById?: (nodeId: string) => ESPCDFNode | undefined

    A node already held by the store, if any.

    isTreeSynced?: () => boolean

    true while the home tree in the store is synced and nothing has marked it stale.

    markTreeSynced?: () => void

    Records that a full home sync finished.

    onNodeUpdate?: (update: Record<string, any>) => void

    Handle node update events

    persistSnapshot?: () => void

    Saves the home tree to disk after a successful full sync (fire-and-forget).

    Methods