Signature of a pre-transition hook handler. Receives the current and
proposed-next data payloads via a HookContext and returns a
HookResult: a falsy result vetoes the transition, a truthy
result allows it, and a HookComplexResult can additionally
rewrite the next state or next data.
Signature of a pre-transition hook handler. Receives the current and proposed-next data payloads via a HookContext and returns a HookResult: a falsy result vetoes the transition, a truthy result allows it, and a HookComplexResult can additionally rewrite the next state or next data.