diff --git a/examples/hackernews/src/routes/stories.rs b/examples/hackernews/src/routes/stories.rs
index b0a7f00a8d..94f0689d18 100644
--- a/examples/hackernews/src/routes/stories.rs
+++ b/examples/hackernews/src/routes/stories.rs
@@ -80,7 +80,7 @@ pub fn Stories() -> impl IntoView {
"Loading..." }
- set_pending=set_pending.into()
+ set_pending
>
{move || match stories.get() {
None => None,
diff --git a/examples/hackernews_axum/src/routes/stories.rs b/examples/hackernews_axum/src/routes/stories.rs
index 09ba7ed11f..62a3094957 100644
--- a/examples/hackernews_axum/src/routes/stories.rs
+++ b/examples/hackernews_axum/src/routes/stories.rs
@@ -70,7 +70,7 @@ pub fn Stories() -> impl IntoView {
>
+ >=
"more >"
@@ -79,7 +79,7 @@ pub fn Stories() -> impl IntoView {
"Loading..." }
- set_pending=set_pending.into()
+ set_pending
>
{move || match stories.get() {
None => None,
diff --git a/examples/hackernews_islands_axum/src/routes/stories.rs b/examples/hackernews_islands_axum/src/routes/stories.rs
index 24f240ff87..147153a083 100644
--- a/examples/hackernews_islands_axum/src/routes/stories.rs
+++ b/examples/hackernews_islands_axum/src/routes/stories.rs
@@ -91,7 +91,7 @@ pub fn Stories() -> impl IntoView {
{move || stories.get().map(|story| story.map(|stories| view! {
diff --git a/leptos/src/transition.rs b/leptos/src/transition.rs
index 9864c325fe..0dd89f4946 100644
--- a/leptos/src/transition.rs
+++ b/leptos/src/transition.rs
@@ -39,7 +39,7 @@ use std::{
///
/// "Loading..."}
-/// set_pending=set_pending.into()
+/// set_pending
/// >
/// {move || {
/// cats.read().map(|data| match data {
@@ -72,7 +72,7 @@ pub fn Transition(
/// A function that will be called when the component transitions into or out of
/// the `pending` state, with its argument indicating whether it is pending (`true`)
/// or not pending (`false`).
- #[prop(optional)]
+ #[prop(optional, into)]
set_pending: Option>,
/// Will be displayed once all resources have resolved.
children: Box Fragment>,