DioxusLabs / dioxus

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

hot-reload skips inline conditionals and for loops #2079

Open jkelleyrtp opened 3 months ago

jkelleyrtp commented 3 months ago

Problem

Currently we give up on hotreloading rsx inside of for loops and conditionals but we don't need to. Especially now that for and if are special keywords, they're still technically part of the template that created them.

Culprit lines: packages/rsx/src/lib.rs:336 packages/rsx/src/lib.rs:434

Environment:

Questionnaire