DioxusLabs / dioxus

Fullstack GUI library for web, desktop, mobile, and more.
https://dioxuslabs.com
Apache License 2.0
19.45k stars 748 forks source link

Hotreloading doesn't hotreload let-bound rsx fragments #2076

Closed jkelleyrtp closed 4 months ago

jkelleyrtp commented 4 months ago

Problem

The head_ block won't be hotreloaded:

use dioxus::prelude::*;

pub fn CoolChild() -> Element {
    let head_ = rsx! {
        div {
            div { "asasddasdasd" }
            div { "asasdd1asaassdd23asasddasdasd" }
        }
    };

    head_
}

Expected behavior

A clear and concise description of what you expected to happen.

Screenshots

If applicable, add screenshots to help explain your problem.

Environment:

Questionnaire