Skip to main content

Crate velox_core

Crate velox_core 

Source

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);