pub(crate) const COMP_ATTR_RETENTION: &str = "retention";
pub(crate) const LIFECYCLE_METHOD_NAMES: &[&str] = &[
"retention_policy",
"on_create",
"on_mount",
"on_update",
"on_activate",
"on_freeze",
"on_resume",
"on_unmount",
"on_destroy",
"on_error",
"on_appear",
"on_disappear",
"on_foreground",
"on_background",
"on_inactive",
"on_terminate",
"on_system_event",
];
pub(crate) const COMPONENT_RENDER_FN: &str = "render";
pub(crate) const ERR_COMPONENT_MISSING_RENDER: &str =
"`#[component]` requires `fn render(&self) -> NodeId` inside the annotated `impl` block";
pub(crate) const ERR_COMPONENT_UNKNOWN_ATTR: &str =
"unknown `#[component]` attribute — expected `retention = Destroy | Freeze | Alive`";