wip: remove send requirement on root props
This commit is contained in:
1 parent
5ffa60664c
commit
5a21493fb7
3 files changed
+39
-21
No files matched your search
@@ -210,9 +210,9 @@ impl ScopeInner {
|
||||
}
|
||||
}
|
||||
|
||||
pub(crate) fn update_scope_dependencies<'creator_node>(
|
||||
pub(crate) fn update_scope_dependencies(
|
||||
&mut self,
|
||||
caller: &'creator_node dyn for<'b> Fn(&'b ScopeInner) -> Element<'b>,
|
||||
caller: &dyn for<'b> Fn(&'b ScopeInner) -> Element<'b>,
|
||||
) {
|
||||
log::debug!("Updating scope dependencies {:?}", self.our_arena_idx);
|
||||
let caller = caller as *const _;
|
||||
@@ -308,6 +308,23 @@ impl ScopeInner {
|
||||
}
|
||||
}
|
||||
|
||||
// run the list of effects
|
||||
pub(crate) fn run_effects(&mut self, pool: &ResourcePool) {
|
||||
todo!()
|
||||
// let mut effects = self.frames.effects.borrow_mut();
|
||||
// let mut effects = effects.drain(..).collect::<Vec<_>>();
|
||||
|
||||
// for effect in effects {
|
||||
// let effect = unsafe { &*effect };
|
||||
// let effect = effect.as_ref();
|
||||
|
||||
// let mut effect = effect.borrow_mut();
|
||||
// let mut effect = effect.as_mut();
|
||||
|
||||
// effect.run(pool);
|
||||
// }
|
||||
}
|
||||
|
||||
/// Render this component.
|
||||
///
|
||||
/// Returns true if the scope completed successfully and false if running failed (IE a None error was propagated).
|
||||
|
||||
Reference in new issue
Block a user