Skip to content

@epikodelabs/actionstack


@epikodelabs/actionstack / registerActionHandlers

Function: registerActionHandlers()

registerActionHandlers(module): void

Defined in: actions.ts:53

Registers all action handlers defined in a feature module into the global action handler map.

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

Parameters

module

FeatureModule

The feature module containing actions with associated handlers.

Returns

void

Released under the MIT License.