condition

Functions

entry

Configure an entry hook

gather

Get values returned by all hooks of the annotated type.

laminar.configurations.hooks.condition.entry(hook: T) T

Configure an entry hook

Usage:

from laminar.configurations import entry

@hooks.entry
def enter() -> bool:
    ...
laminar.configurations.hooks.condition.gather(*, layer: Layer, annotation: str) list[Any]

Get values returned by all hooks of the annotated type.

Parameters
layer: Layer

Layer the hooks are for.

annotation: str

Annotation to get the hooks for.

Returns

Return values for each hook.