pub mod ergonomics;
pub mod lifecycle;
pub mod next_tick;
pub mod provide_inject;
pub mod ref_cell;
pub mod signal;
pub mod vmodel;
pub mod watch;
pub use ergonomics::*;
pub use lifecycle::{
LifecycleHandle, before_destroy, cleanup_component, clear_current_component,
clear_updated_hooks, current_component_id, generate_component_id, has_updated_hooks,
on_mounted, on_unmounted, on_updated, run_all_destroy_hooks, run_all_mounted_hooks,
run_all_updated_hooks, run_destroy_hooks, run_mounted_hooks, run_unmounted_hooks,
run_updated_hooks, set_current_component,
};
#[macro_export]
macro_rules! signal {
($name:ident = $value:expr) => {
std::rc::Rc::new($crate::signal::Signal::new($value))
};
}
#[macro_export]
macro_rules! r#ref {
($value:expr) => {
$crate::ergonomics::ref_value($value)
};
}
#[macro_export]
macro_rules! shallow {
($value:expr) => {
$crate::ergonomics::shallow_ref($value)
};
}