make GlobalMemo and GlobalSignal not copy or clone
This commit is contained in:
1 parent
9633cfadde
commit
fc6912d4c0
2 files changed
+26
-32
No files matched your search
@@ -127,7 +127,7 @@ impl Effect {
|
||||
///
|
||||
/// The signal will be owned by the current component and will be dropped when the component is dropped.
|
||||
pub fn new(callback: impl FnMut() + 'static) -> Self {
|
||||
let mut myself = Self {
|
||||
let myself = Self {
|
||||
source: current_scope_id().expect("in a virtual dom"),
|
||||
inner: EffectInner::new(Box::new(callback)),
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user