useEventSubscriber
Installation
import { useEventSubscriber } from 'uxp/components';Signature
function useEventSubscriber(instanceId: string, eventName: string, callback: (data?: { [key: string]: any }) => void): IEventSubscriberExamples
useEventSubscriber(props.instanceId, "my-custom-event", (data?: any) => {
console.log(data?.message)
})Related Types
Last updated