Browse Source

fix: provide_root_context on root scopes

Jonathan Kelley 3 years ago
parent
commit
d9a07ddddb
1 changed files with 1 additions and 0 deletions
  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;