Fix creating signals in effects

This commit is contained in:
Evan Almloff committed 2023-08-21 14:42:56 -05:00
1 parent d8704a0447
commit 38274da3ee
3 files changed
+19 -9

No files matched your search

+1
View File
@@ -74,6 +74,7 @@ pub fn selector<R: PartialEq>(mut f: impl FnMut() -> R + 'static) -> ReadOnlySig
inner: CopyValue::invalid(),
};
let effect = Effect {
source: current_scope_id().expect("in a virtual dom"),
callback: CopyValue::invalid(),
};