useMultiEventSubscriber

event handler for multiple events either can pass a simple configuration with array of event names and a shared callback of a pull config with different callback for each event.

Installation

import { useMultiEventSubscriber } from 'uxp/components';

Signature

function useMultiEventSubscriber(instanceId: string, config: MultiEventSubscriberConfig): void

Last updated