mirror of
https://github.com/leptos-rs/leptos
synced 2024-11-10 06:44:17 +00:00
Merge pull request #2285 from leptos-rs/fix-issues
Fix remaining CI issues
This commit is contained in:
commit
8a77691cb5
2 changed files with 9 additions and 6 deletions
|
@ -141,9 +141,12 @@ pub fn Counter() -> impl IntoView {
|
|||
<div>
|
||||
<button on:click=move |_| clear.dispatch(())>"Clear"</button>
|
||||
<button on:click=move |_| dec.dispatch(())>"-1"</button>
|
||||
<Suspense fallback=move |_| view!{ <span>"Value: "</span>}>
|
||||
<span>"Value: " { counter.get().map(|count| count.unwrap_or(0)).unwrap_or(0);} "!"</span>
|
||||
</Suspense>
|
||||
<span>
|
||||
"Value: "
|
||||
<Suspense>
|
||||
{move || counter.and_then(|count| *count)} "!"
|
||||
</Suspense>
|
||||
</span>
|
||||
<button on:click=move |_| inc.dispatch(())>"+1"</button>
|
||||
</div>
|
||||
<Suspense>
|
||||
|
@ -201,7 +204,7 @@ pub fn FormCounter() -> impl IntoView {
|
|||
<input type="hidden" name="msg" value="form value down"/>
|
||||
<input type="submit" value="-1"/>
|
||||
</ActionForm>
|
||||
<span>"Value: " {move || value().to_string()} "!"</span>
|
||||
<span>"Value: " <Suspense>{move || value().to_string()} "!"</Suspense></span>
|
||||
<ActionForm action=adjust>
|
||||
<input type="hidden" name="delta" value="1"/>
|
||||
<input type="hidden" name="msg" value="form value up"/>
|
||||
|
|
|
@ -434,7 +434,7 @@ pub fn server_macro_impl(
|
|||
quote! {
|
||||
#server_fn_path::request::BrowserMockReq
|
||||
}
|
||||
} else if cfg!(feature = "axum-no-default") {
|
||||
} else if cfg!(feature = "axum") {
|
||||
quote! {
|
||||
#server_fn_path::axum_export::http::Request<#server_fn_path::axum_export::body::Body>
|
||||
}
|
||||
|
@ -458,7 +458,7 @@ pub fn server_macro_impl(
|
|||
quote! {
|
||||
#server_fn_path::response::BrowserMockRes
|
||||
}
|
||||
} else if cfg!(feature = "axum-no-default") {
|
||||
} else if cfg!(feature = "axum") {
|
||||
quote! {
|
||||
#server_fn_path::axum_export::http::Response<#server_fn_path::axum_export::body::Body>
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue