wip: use the new structure
This commit is contained in:
1 parent
a85b8c4b6b
commit
a05047d01e
12 files changed
+884
-1241
No files matched your search
@@ -270,17 +270,8 @@ Any function prefixed with "use" should not be called conditionally.
|
||||
) -> VNode<'src> {
|
||||
use futures_util::FutureExt;
|
||||
match fut.now_or_never() {
|
||||
Some(out) => {
|
||||
let suspended_cx = SuspendedContext {};
|
||||
let nodes = callback(suspended_cx, out);
|
||||
return nodes;
|
||||
}
|
||||
None => {
|
||||
// we need to register this task
|
||||
VNode::Suspended {
|
||||
real: Cell::new(RealDomNode::empty()),
|
||||
}
|
||||
}
|
||||
Some(out) => callback(SuspendedContext {}, out),
|
||||
None => NodeFactory::suspended(),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user