-
hi guys, this is unacceptable imo. how do you guys deal with this? what does your workflow look like? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 15 replies
-
There are going to be a variety of different answers to this question, any or all of which might be helpful in your situation:
Ultimately it's a compiled language and you're compiling for two separate targets (native binary and WASM), so you will never see the kind of immediate reload loop you can get with any JS library. |
Beta Was this translation helpful? Give feedback.
-
hey @gbj. has something changed recently? I again started with the axum-0.7 template and hot-reloading works, but totally wrong children are being replaced in my browser. Im adding a there is a button below the tested with firefox and chromium. |
Beta Was this translation helpful? Give feedback.
Hm let's see...
Looks like for hot-reloading to work you need to edit
Cargo.toml
to:nightly
feature to leptosstyle-file = "style/tailwind.css"
underneathtailwind-input-file = "style/tailwind.css"
(And make sure you remove or edit the
rust-toolchain.toml
file so it uses nightly)With those changes I can see this sort of responsiveness, where it will both update the class in the HTML and reload the Tailwind file while it is still recompiling Rust in the background
Screen.Recording.2024-09-03.at.4.06.02.PM.mov