diff --git a/examples/actix_ssr_router/src/lib.rs b/examples/actix_ssr_router/src/lib.rs
index 913510c7dfc..0f039a5964c 100644
--- a/examples/actix_ssr_router/src/lib.rs
+++ b/examples/actix_ssr_router/src/lib.rs
@@ -115,27 +115,7 @@ fn render_post(post: &content::Post) -> Html {
}
};
- let view_content = {
- let mut show_hero = false;
- let parts: Vec = post
- .content
- .iter()
- .map(|part| match part {
- PostPart::Section(section) => {
- let html = render_section(section, show_hero);
- show_hero = true;
- html
- }
- PostPart::Quote(quote) => {
- show_hero = false;
- render_quote(quote)
- }
- })
- .collect();
- html! {
- {for parts}
- }
- };
+ let mut show_hero = false;
html! {
{ &file.name }
-{ &file.name }
+{ "Ids: " }{ ids }
{ message }
} - }) - .collect(); - let has_job = state.interval_handle.is_some() || state.timeout_handle.is_some(); let on_add_timeout = { @@ -163,7 +153,7 @@ fn App() -> Html { }; let on_cancel = Callback::from({ - let (_, dispatcher) = state.into_inner(); + let dispatcher = state.dispatcher(); move |_: MouseEvent| { dispatcher.dispatch(TimerAction::Cancel); @@ -179,7 +169,9 @@ fn App() -> Html {{ message }
+ }