Re-exports§
pub use lifecycle::LifecycleHandle;pub use lifecycle::before_destroy;pub use lifecycle::cleanup_component;pub use lifecycle::clear_current_component;pub use lifecycle::clear_updated_hooks;pub use lifecycle::current_component_id;pub use lifecycle::generate_component_id;pub use lifecycle::has_updated_hooks;pub use lifecycle::on_mounted;pub use lifecycle::on_unmounted;pub use lifecycle::on_updated;pub use lifecycle::run_all_destroy_hooks;pub use lifecycle::run_all_mounted_hooks;pub use lifecycle::run_all_updated_hooks;pub use lifecycle::run_destroy_hooks;pub use lifecycle::run_mounted_hooks;pub use lifecycle::run_unmounted_hooks;pub use lifecycle::run_updated_hooks;pub use lifecycle::set_current_component;pub use ergonomics::*;
Modules§
- ergonomics
- Vue-like ergonomic APIs for Velox.
- lifecycle
- next_
tick - provide_
inject - ref_
cell - signal
- vmodel
- watch
Macros§
- define_
emits - Define emits for a component (Vue-like
defineEmits). - on_
mounted - Register a hook to run when the current component is mounted.
- on_
resize - Register a hook to run when the viewport is resized.
- on_
unmounted - Register a hook to run when the current component is unmounted.
- on_
updated - Register a hook to run whenever the current component is updated (re-rendered).
- reactive
- Define reactive state inline using a struct expression.
- reactive_
struct - Create a reactive struct with named fields.
- ref
- Create a Vue-like reactive reference.
Usage:
let count = ref!(0);Expands to:velox_core::ref_value(0) - shallow
- Create a shallow reactive reference for Copy types.
Usage:
let count = shallow!(0); - signal
- Create a Signal with an initial value.
Usage:
let count = signal!(count = 0);