mirror of
https://github.com/leptos-rs/leptos
synced 2024-11-10 06:44:17 +00:00
chore: update tests
This commit is contained in:
parent
54e4205541
commit
4845459511
1 changed files with 2 additions and 4 deletions
|
@ -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"/>
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue