Richer hook return value used when a hook needs to do more than just
accept or veto a transition. pass is the required accept/veto flag
(kept non-optional so that returning a stray object doesn't accidentally
veto everything). The optional state overrides the destination state,
data overrides the data observed by other hooks in the same chain,
and next_data overrides the data committed after the transition.
Richer hook return value used when a hook needs to do more than just accept or veto a transition.
passis the required accept/veto flag (kept non-optional so that returning a stray object doesn't accidentally veto everything). The optionalstateoverrides the destination state,dataoverrides the data observed by other hooks in the same chain, andnext_dataoverrides the data committed after the transition.