Skip to main content

Hook Types

FlowHooksOf

Create typed hook decorators for a specific flow:

Available Flows

@Will (Before Hook)

Execute before a flow stage:

Priority

Lower priority values execute first:

Filter

Conditionally execute hooks:

@Did (After Hook)

Execute after a flow stage:

@Around (Wrapper Hook)

Wrap stage execution for full control:

@Stage (Custom Stage)

Define custom flow stages:

Hook Options

Registering Hooks

In Apps

In Plugins

Hook Context

Hooks receive flow context with access to:

Error Handling

Errors in hooks are caught and logged:

Full Example

HookRegistry

Hook registry API

Flow Types

Flow type definitions

@Plugin

Create plugins

Customize Flows

Flow customization guide