Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

https URLs are deleted #67

Closed
srid opened this issue Aug 22, 2023 · 0 comments · Fixed by #68
Closed

https URLs are deleted #67

srid opened this issue Aug 22, 2023 · 0 comments · Fixed by #68

Comments

@srid
Copy link

srid commented Aug 22, 2023

Source:

#[component]
fn NixFlake(cx: Scope) -> impl IntoView {
    let suggestions = FlakeUrl::suggestions();
    let (query, set_query) = use_signal::<FlakeUrl>(cx);
    let result = query::use_server_query(cx, query, get_flake);
    view! { cx,
        <Title text="Nix Flake"/>
        <h1 class="text-5xl font-bold">{"Nix Flake"}</h1>
        <QueryInput id="nix-flake-input" query set_query suggestions/>
        <RefetchQueryButton result query/>

        // FIXME: putting this here causes route switch bugs
        // https://github.com/leptos-rs/leptos/issues/1569
        // <NixFlakeNav />

        <Outlet/>
    }
}

After running the formatter,

#[component]
fn NixFlake(cx: Scope) -> impl IntoView {
    let suggestions = FlakeUrl::suggestions();
    let (query, set_query) = use_signal::<FlakeUrl>(cx);
    let result = query::use_server_query(cx, query, get_flake);
    view! { cx,
        <Title text="Nix Flake"/>
        <h1 class="text-5xl font-bold">{"Nix Flake"}</h1>
        <QueryInput id="nix-flake-input" query set_query suggestions/>
        <RefetchQueryButton result query/>

        // FIXME: putting this here causes route switch bugs
        // https:
        // <NixFlakeNav />

        <Outlet/>
    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant