Skip to content

Renaming value doesn't change in rsx macro #2422

@mrgzi

Description

@mrgzi

When we rename the value, it doesn't change the value if its inside a string. but it changes in rust code.

pub fn component() -> Element {
    let mut username = use_signal(|| "".to_string());

    rsx! {
        input {
            r#type: "text",
            value: "{username}",
        }
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    rsxRelated to rsx or the dioxus-rsx cratetweakSmall changes to improve experience

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions