From 85a91af7c6a4a86ee314d83d6143a703ee39daf2 Mon Sep 17 00:00:00 2001 From: Greg Johnston Date: Tue, 9 Apr 2024 14:45:19 -0400 Subject: [PATCH] examples: simplify stable syntax for using signals in view --- examples/counter/src/lib.rs | 2 +- examples/counters/src/lib.rs | 2 +- examples/hackernews_axum/src/error_template.rs | 2 +- .../hackernews_islands_axum/src/error_template.rs | 2 +- .../hackernews_islands_axum/src/routes/story.rs | 2 +- examples/hackernews_js_fetch/src/error_template.rs | 2 +- examples/hackernews_js_fetch/src/routes/story.rs | 2 +- examples/js-framework-benchmark/src/lib.rs | 4 ++-- examples/parent_child/src/lib.rs | 8 ++++---- examples/portal/src/lib.rs | 4 ++-- examples/server_fns_axum/src/app.rs | 14 ++++++-------- examples/slots/src/lib.rs | 2 +- examples/sso_auth_axum/src/lib.rs | 2 +- examples/tailwind_axum/src/app.rs | 2 +- examples/timer/src/lib.rs | 6 +++--- examples/todomvc/src/lib.rs | 8 ++++---- 16 files changed, 31 insertions(+), 33 deletions(-) diff --git a/examples/counter/src/lib.rs b/examples/counter/src/lib.rs index 66b0e90dcd..7b3b43461d 100644 --- a/examples/counter/src/lib.rs +++ b/examples/counter/src/lib.rs @@ -16,7 +16,7 @@ pub fn SimpleCounter(
- "Value: " {move || value.get()} "!" + "Value: " {value} "!"
} diff --git a/examples/counters/src/lib.rs b/examples/counters/src/lib.rs index 3df34397c7..5460322da9 100644 --- a/examples/counters/src/lib.rs +++ b/examples/counters/src/lib.rs @@ -63,7 +63,7 @@ pub fn Counters() -> impl IntoView {