🎨 Passes action keys by reference in dispatch

This commit is contained in:
Manuel Cillero 2024-07-27 23:05:41 +02:00
parent b481d84cba
commit 5f9c1e4b15
9 changed files with 41 additions and 31 deletions

View file

@ -28,10 +28,11 @@ impl<C: ComponentTrait> RenderComponent<C> {
}
#[inline(always)]
#[allow(clippy::inline_always)]
pub(crate) fn dispatch(component: &C, cx: &mut Context) -> Option<Markup> {
let mut render_component: Option<Markup> = None;
dispatch_actions(
ActionKey::new(
&ActionKey::new(
TypeId::of::<Self>(),
Some(cx.theme().type_id()),
Some(TypeId::of::<C>()),