useMessageBus
Installation
import { useMessageBus } from 'uxp/components';Signature
function useMessageBus(context: any, channel: any, callback: any): MessageBusHookExamples
useMessageBus(props.uxpContext, "visitor-arrival", (payload, channel) => {
getVisitorArrivals();
Toast.info("Your visitor is here")
return "updated"
})Related Types
Last updated