wip: use the new structure

This commit is contained in:
Jonathan Kelley committed 2021-07-12 18:19:27 -04:00
1 parent a85b8c4b6b
commit a05047d01e
12 files changed
+884 -1241

No files matched your search

+2 -11
View File
@@ -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(),
}
}