A registry for managing and executing lifecycle hooks. Handlers are executed sequentially in registration order.
While built-in hooks are defined in ClideHooks, custom hooks can be registered using any string as the hook name.
ClideHooks
The hooks configuration object
Call all handlers registered for a hook. Handlers are called sequentially in registration order.
The hook to call
Arguments to pass to each handler
Remove a previously registered handler.
The hook to remove the handler from
The handler to remove
true if the handler was found and removed
Register a handler for a hook.
The hook to handle
Function to execute when the hook is called
Register a one-time handler that removes itself after execution.
The hook to handle once
Function to execute once when the hook is called
A registry for managing and executing lifecycle hooks. Handlers are executed sequentially in registration order.
While built-in hooks are defined in
ClideHooks
, custom hooks can be registered using any string as the hook name.