🎨 Passes action keys by reference in dispatch
This commit is contained in:
parent
b481d84cba
commit
5f9c1e4b15
9 changed files with 41 additions and 31 deletions
|
|
@ -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>()),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue