Skip to main content

Function: isHookAction()

function isHookAction(actionName): actionName is HookAction;

Returns if a given action name corresponds to a hook, this is, one of:

  • onInit() hook
  • onLazyInit() hook
  • onAttachedToRootStore() hook
  • disposer returned by a onAttachedToRootStore() hook

Parameters​

ParameterTypeDescription
actionNamestringAction name to check.

Returns​

actionName is HookAction

true if it is a hook, false otherwise.