# useEventBusDispatcher

Retrieve an EventBus instance from the FireflyRuntime instance provided by RuntimeContext and provide a function to dispatch an event.

# Reference

const dispatch = useEventBusDispatcher()

# Parameters

None

# Returns

A dispatch function.

# Usage

import { useEventBusDispatcher } from "@squide/firefly";

const dispatch = useEventBusDispatcher();

dispatch("foo", "bar");