How to Catch Completion of runUtilityHooks Inside namedAction Function

Jomar Transfiguracion:
Hi,
How to catch if the runUtilityHooks already completed? Inside namedAction which is a function.
PS runUtilityHooks is runned also by namedAction
Thank you


Hassan Mukhtar:
Hey what’s the use case for this, say you have a named action with a utility hook, the next action in that named action wouldn’t run until the hook is finished


Hassan Mukhtar:
You can put JavaScript function actions before and after the utility hook and do something like setting “model.isLoading” to true and false before and after the hook action


Jomar Transfiguracion:
Oh I see. This is suffice. TY