json-dom
    Preparing search index...

    Function makeForwardingListener

    • Build the listener function used in render-only mode: instead of running real logic locally, it packages the event as a plain envelope (the path to the item it fired on, the event type, the registered listener name and any custom args) and hands it to the injected transport function. See retrieveListener.

      Parameters

      • listenerName: string

        The registered name this forwarder stands in for.

      • transport: ForwardEventsFunction

        Where the envelope is sent (set on the root item with setForwardEvents).

      Returns ListenerFunction