Browse Source

fix signals leaking memory

Evan Almloff 1 year ago
parent
commit
8322b508a7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/signals/src/copy_value.rs

+ 1 - 1
packages/signals/src/copy_value.rs

@@ -93,7 +93,7 @@ fn current_owner<S: Storage<T>, T>() -> Owner<S> {
 }
 
 fn owner_in_scope<S: Storage<T>, T>(scope: ScopeId) -> Owner<S> {
-    match consume_context_from_scope(scope) {
+    match scope.has_context() {
         Some(rt) => rt,
         None => {
             let owner = S::owner();