Skip to content

FlagsHooks

type FlagsHooks = Hooks<BeforeEvent, AfterEvent>;

Defined in: hooks/contract.ts:181

A control-plane hook. Implement before, after, or both. Pass one — or an array — to createFlagsCore via hooks. before runs before a mutation commits (throw to deny); after runs once it has committed, for side effects only (errors are isolated and reported via onHookError).