Skip to content

@epikodelabs/actionstack


@epikodelabs/actionstack / registerActionHandlers

Function: registerActionHandlers()

registerActionHandlers(module, registry): void

Defined in: actions.ts:46

Registers all action handlers defined in a feature module into the store's action handler map.

This function iterates over the module's actions and adds their handlers to the registry used for dispatching. If a handler is already registered for the same action type, a warning is logged and the existing handler is preserved.

Parameters

module

FeatureModule

The feature module containing actions with associated handlers.

registry

ActionRegistry

The store's action registry.

Returns

void

Released under the GNU AGPL v3.