Ver Fonte

fix: provide_root_context on root scopes

Jonathan Kelley há 3 anos atrás
pai
commit
d9a07dd
1 ficheiros alterados com 1 adições e 0 exclusões
  1. 1 0
      packages/core/src/scopes.rs

+ 1 - 0
packages/core/src/scopes.rs

@@ -695,6 +695,7 @@ impl ScopeState {
                 .insert(TypeId::of::<T>(), value.clone())
                 .map(|f| f.downcast::<T>().ok())
                 .flatten();
+            return value;
         }
 
         let mut search_parent = self.parent_scope;