Skip to content

Commit

Permalink
Maybe fix
Browse files Browse the repository at this point in the history
  • Loading branch information
zakstucke committed Feb 13, 2025
1 parent d647343 commit 220dfb9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
11 changes: 9 additions & 2 deletions tachys/src/view/iterators.rs
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,10 @@ where
extra_attrs.clone(),
);
}
buf.push_str("<!>");
if escape {
buf.push_str("<!>");
*position = Position::NextChild;
}
}

fn to_html_async_with_buf<const OUT_OF_ORDER: bool>(
Expand Down Expand Up @@ -359,7 +362,10 @@ where
extra_attrs.clone(),
);
}
buf.push_sync("<!>");
if escape {
buf.push_sync("<!>");
*position = Position::NextChild;
}
}

fn hydrate<const FROM_SERVER: bool>(
Expand All @@ -373,6 +379,7 @@ where
.collect();

let marker = cursor.next_placeholder(position);
position.set(Position::NextChild);

VecState { states, marker }
}
Expand Down
1 change: 1 addition & 0 deletions tachys/src/view/keyed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,7 @@ where
rendered_items.push(Some((set_index, item)));
}
let marker = cursor.next_placeholder(position);
position.set(Position::NextChild);
KeyedState {
parent: Some(parent),
marker,
Expand Down

0 comments on commit 220dfb9

Please sign in to comment.