From 0571ebbc363479fbdc699339ce10e6275cbac1c2 Mon Sep 17 00:00:00 2001 From: Greg Johnston Date: Sun, 14 Jan 2024 20:19:56 -0500 Subject: [PATCH] working on example --- examples/server_fns_axum/src/app.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/examples/server_fns_axum/src/app.rs b/examples/server_fns_axum/src/app.rs index ddfc25510..27a6b43a7 100644 --- a/examples/server_fns_axum/src/app.rs +++ b/examples/server_fns_axum/src/app.rs @@ -171,13 +171,16 @@ pub fn WithAnAction() -> impl IntoView { /// An lets you do the same thing as dispatching an action, but automates the /// creation of the dispatched argument struct using a
. This means it also gracefully /// degrades well when JS/WASM are not available. +/// +/// Try turning off WASM in your browser. The form still works, and successfully displays the error +/// message if the server function returns an error. Otherwise, it loads the new resource data. #[component] pub fn WithActionForm() -> impl IntoView { let action = create_server_action::(); let row_count = create_resource(action.version(), |_| get_rows()); view! { -

Using create_action

+

Using ""

"" "lets you use an HTML " "" "to call a server function in a way that gracefully degrades."