This commit is contained in:
Greg Johnston 2022-12-06 22:31:54 -05:00
parent 1f3dde5b4a
commit 1ba602ec47
2 changed files with 6 additions and 1 deletions

View File

@ -26,7 +26,7 @@ fn Tests(cx: Scope) -> Element {
view! {
cx,
<div>
<div><SelfUpdatingEffect/></div>
//<div><SelfUpdatingEffect/></div>
<div><BlockOrders/></div>
//<div><TemplateConsumer/></div>
</div>

View File

@ -879,9 +879,12 @@ fn block_to_tokens(
//next_sib = Some(el.clone());
template.push_str("<!#><!/>");
let end = Ident::new(&format!("{co}_end"), span);
navigations.push(quote! {
#location;
let (#el, #co) = #cx.get_next_marker(&#name);
let #end = #co.last().cloned().unwrap_or_else(|| #el.next_sibling().unwrap_throw());
//log::debug!("get_next_marker => {}", #el.node_name());
});
@ -895,6 +898,8 @@ fn block_to_tokens(
);
});
return PrevSibChange::Sib(end);
//current = Some(el);
}
// in SSR, it needs to insert the value, wrapped in comments