Fix issue #109
This commit is contained in:
parent
1f3dde5b4a
commit
1ba602ec47
|
@ -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>
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue