#Default desktop project, hot reload rebuilds everytime

1 messages · Page 1 of 1 (latest)

digital pilot
#

i created a new desktop app with dx new and selected the desktop boilerplate, then i used dx serve and changed some strings. it rebuilds every single time. how can i solve this?

rsx! {
        Link { to: Route::Blog { id: count() }, "Go to blffogg" }
        div {
            h1 { "High-Five countdsdfggr: {count}" }
            button { onclick: move |_| count += 1, "Up high!h" }
            button { onclick: move |_| count -= 1, "Down low!" }
        }
    }
whole karma
whole karma
digital pilot
#

@whole karma thanks! i'm fine with it as long as i know i didn't bork the setup

oak tendon
#

@whole karma #general message

fossil portal
whole karma
#

I think merging classes still isn't working on hot reloading

#

but yes, normal classes should work in the alpha

fossil portal
#
div{
        class: "flex flex-row flex-wrap justify-center",
#

indeed, changing some of these are hotreload

fossil portal
#

from other side - adding something like w-7 or changing it to w-8 - cause app rebuild

whole karma
#

Dioxus will merge these two classes: div { class: "a", class: if true { "b" } }

fossil portal
#

but this will be class: "a b", right? not class: a-b like single classname

whole karma
#

Yes

#

If you are using dioxus 0.5 with tailwind, asset hot reloading is not supported so any assets like tailwind.css that change will cause a full recompile

fossil portal
#

I'm using 0.6.0-alpha.4

#

and somehow it does hotreload without recompile