Fix the root error boundary during suspense in ssr (#4710)

* Fix the root error boundary during suspense in ssr

* fix some typos
This commit is contained in:
Evan Almloff authored and GitHub committed 2025-10-01 17:10:28 -07:00
1 parent 10912f4750
commit ad40f81607
9 files changed
+49 -13

No files matched your search

+2 -2
View File
@@ -795,7 +795,7 @@ impl VNode {
fn write_attrs(
&self,
mount: MountId,
dynamic_attrbiutes_iter: &mut Peekable<impl Iterator<Item = (usize, &'static [u8])>>,
dynamic_attributes_iter: &mut Peekable<impl Iterator<Item = (usize, &'static [u8])>>,
root_idx: u8,
dom: &mut VirtualDom,
to: &mut impl WriteMutations,
@@ -804,7 +804,7 @@ impl VNode {
// Only take nodes that are under this root node
let from_root_node = |(_, path): &(usize, &[u8])| path.first() == Some(&root_idx);
while let Some((attribute_idx, attribute_path)) =
dynamic_attrbiutes_iter.next_if(from_root_node)
dynamic_attributes_iter.next_if(from_root_node)
{
let attribute = &self.dynamic_attrs[attribute_idx];