Closed DogeDark closed 2 months ago
This also happens with if
, else if
and else
statements inside of RSX blocks:
fn app() -> Element {
let mut data = use_signal(|| false);
rsx! {
if data() {
"true"
} else {
{data.set(true)}
"false"
}
}
}
Also happens on release.
Scratch this. It's not based on conditionals but rather seems based around how quickly a signal or hook is updated.
Problem
When running a Desktop app on Windows 10, updating RSX quickly after it was rendered causes an error in the console.
Steps To Reproduce
Run this component on the Dioxus Desktop platform in a Windows environment.
Expected behavior
true
should be displayed instead offalse
and there should be no errors.Screenshots
This error is shown in the console when the
true
branch of the if statement is run.Environment:
main
,0.5
1.77.1
Windows 10
Desktop