Module lifecycle

Module lifecycle 

Source
Expand description

Widget lifecycle hooks for mount, update, and unmount callbacks.

This module provides a system for managing widget lifecycle events, similar to React’s useEffect or Vue’s lifecycle hooks.

Structs§

Effect
Effect hook that runs a callback and optionally cleans up.
EffectManager
Manager for effects with automatic cleanup.
HookId
Unique ID for a lifecycle hook registration.
LifecycleEvent
Event passed to lifecycle callbacks.
LifecycleManager
Manager for widget lifecycle hooks.

Enums§

LifecyclePhase
Lifecycle phase for widgets.

Type Aliases§

LifecycleCallback
A lifecycle callback that can be registered.