Skip to content

useBoundActions

const useBoundActions: BoundActionsFn<RegisteredBindings>

Defined in: store/StoreProvider.tsx:451

Resolve a binding id to a { eventName: handler } object. Static bindings ignore params; factory bindings receive it. Components freely mix this with inline dispatch — both route through the same executeActions path.

Returns an empty object (with a console warning) when the id has no entry, so consumers can spread the result unconditionally without crashing UI.

Ids, params and handler signatures are typed once the app registers its record via interface Register { bindings: typeof appBindings } (ADR 0026).