Function registerActionDispatchedCallback

  • Low-level function registering a callback that will get called when an action got dispatched.

    listenerId attribute should an unique identifier of the listener (the callback function).

    No matter the state was changed or not, a was reducer invoked or not (see also bypassReducer in the dispatchAction() function), this callback will get called.

    Each registerActionDispatchedCallback() call must be paired with a call to unregisterActionDispatchedCallback().

    Type Parameters

    • TState extends Object

    • TAction extends Action

    Parameters

    Returns void

Generated using TypeDoc