mirror of
https://github.com/leptos-rs/leptos.git
synced 2025-12-27 07:34:35 -05:00
chore: update tests
This commit is contained in:
@@ -38,7 +38,7 @@ pub fn TestComponent(
|
||||
}
|
||||
|
||||
#[component]
|
||||
fn TestMutCallback<F>(mut callback: F, value: &'static str) -> impl IntoView
|
||||
pub fn TestMutCallback<F>(mut callback: F, value: &'static str) -> impl IntoView
|
||||
where
|
||||
F: FnMut(u32) + 'static,
|
||||
{
|
||||
@@ -46,9 +46,7 @@ where
|
||||
view! {
|
||||
<button on:click=move |_| {
|
||||
callback(5);
|
||||
}>
|
||||
{value}
|
||||
</button>
|
||||
}>{value}</button>
|
||||
<TestComponent key="test"/>
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user