Closed marc2332 closed 3 months ago
Problem
This goes into an infinite loop:
fn app() -> Element { let mut count = use_signal(|| 0); use_effect(move || { count.set(5); println!("{count}"); }); let x = count.read(); rsx!( div { width: "100%", height: "100%", background: "blue", onclick: move |_| count += 1, } ) }
Expected behavior
Don't go into an infinite loop
Environment:
I literally realized I was reading the signal the moment I opened the issue
Problem
This goes into an infinite loop:
Expected behavior
Don't go into an infinite loop
Environment: