Skip to content

@epikodelabs/actionstack


@epikodelabs/actionstack / registerThunks

Function: registerThunks()

registerThunks(module, registry): void

Defined in: actions.ts:87

Registers all thunks defined in a feature module into the store's thunk registry.

This allows the store's middleware to automatically invoke thunks when their triggers match a dispatched action.

If a thunk is already registered under the same type, a warning is logged and the existing thunk is preserved.

Parameters

module

FeatureModule

The feature module containing thunks to be registered.

registry

ActionRegistry

The store's action registry.

Returns

void

Released under the GNU AGPL v3.