mirror of
https://github.com/leptos-rs/leptos.git
synced 2025-12-27 16:54:41 -05:00
Compare commits
2 Commits
version-up
...
server-fn-
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
89a4ab5fe7 | ||
|
|
cb904c6f63 |
@@ -236,9 +236,15 @@ pub fn server_macro_impl(
|
||||
#[cfg(not(feature = "ssr"))]
|
||||
#[allow(unused_variables)]
|
||||
#vis async fn #fn_name(#(#fn_args_2),*) #output_arrow #return_ty {
|
||||
let prefix = #struct_name::prefix().to_string();
|
||||
let url = prefix + "/" + #struct_name::url();
|
||||
#server_fn_path::call_server_fn(&url, #struct_name { #(#field_names_5),* }, #encoding).await
|
||||
|
||||
#server_fn_path::call_server_fn(
|
||||
&{
|
||||
let prefix = #struct_name::prefix().to_string();
|
||||
prefix + "/" + #struct_name::url()
|
||||
},
|
||||
#struct_name { #(#field_names_5),* },
|
||||
#encoding
|
||||
).await
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user