Fix early drop of eventhandlers (#2126)

* fix early drop of eventhandlers

* add a test for stale props that are memorized in place

* fix clippy
This commit is contained in:
Evan Almloff authored and GitHub committed 2024-03-22 14:37:02 -07:00
1 parent acbf7dfc4f
commit 0662033c84
7 files changed
+95 -15

No files matched your search

+1 -1
View File
@@ -5,7 +5,7 @@ async fn memo_updates() {
use dioxus::prelude::*;
thread_local! {
static VEC_SIGNAL: RefCell<Option<Signal<Vec<usize>, SyncStorage>>> = RefCell::new(None);
static VEC_SIGNAL: RefCell<Option<Signal<Vec<usize>, SyncStorage>>> = const { RefCell::new(None) };
}
fn app() -> Element {