Skip to content

Search Example Code broken #614

@geomlattice

Description

@geomlattice

I am trying to make use of the search code here but it seems like this is causing compile errors on my end.

https://github.com/DioxusLabs/docsite/blob/main/packages/search/README.md

I've stripped it down to just

#[component]
fn Homepage() -> Element {
    let search_text = use_signal(String::new);

    render!{
        input {
            oninput: move |e| {
                search_text.set(e.value.clone());
            },
            value: "{search_text}",
        }
    }
}

and yet still I get errors; when I try to use the suggestions the compiler spits out, I get a filed build for dx but no error messages.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions