chore: tweak fragments and tests
This commit is contained in:
1 parent
0e5a59f9ed
commit
4bfd936e12
9 files changed
+638
-539
No files matched your search
@@ -41,7 +41,7 @@ impl SuspenseBoundary {
|
||||
Rc::new(Self {
|
||||
id,
|
||||
waiting_on: Default::default(),
|
||||
mutations: RefCell::new(Mutations::new(0)),
|
||||
mutations: RefCell::new(Mutations::new()),
|
||||
placeholder: Cell::new(None),
|
||||
created_on_stack: Cell::new(0),
|
||||
onresolve: None,
|
||||
|
||||
@@ -78,14 +78,15 @@ impl VirtualDom {
|
||||
let template: &VNode = unsafe { std::mem::transmute(template) };
|
||||
let mutations: &mut Mutations = unsafe { std::mem::transmute(mutations) };
|
||||
|
||||
let place_holder_id = scope.placeholder.get().unwrap();
|
||||
self.scope_stack.push(scope_id);
|
||||
let created = self.create(mutations, template);
|
||||
self.scope_stack.pop();
|
||||
mutations.push(Mutation::ReplaceWith {
|
||||
id: place_holder_id,
|
||||
m: created,
|
||||
});
|
||||
todo!();
|
||||
// let place_holder_id = scope.placeholder.get().unwrap();
|
||||
// self.scope_stack.push(scope_id);
|
||||
// let created = self.create(mutations, template);
|
||||
// self.scope_stack.pop();
|
||||
// mutations.push(Mutation::ReplaceWith {
|
||||
// id: place_holder_id,
|
||||
// m: created,
|
||||
// });
|
||||
|
||||
// for leaf in self.collected_leaves.drain(..) {
|
||||
// fiber.waiting_on.borrow_mut().insert(leaf);
|
||||
|
||||
Reference in new issue
Block a user