Skip to content

ItemDescription based on <p> may induce hard to find hydration errors #72

@blset

Description

@blset

in the source below

what about div instead of p ?

I've been caught several times putting div content in ItemDescription which triggers the good old textbookcase hydration error div inside p.
but it's not accurately pin pointed in devtools so it takes time to track if you forgot about it

view! {
      <p
          class=move || {
              format!("singlestage-item-description {}", class.get().unwrap_or_default())
          }

          {..global_attrs_1}
          {..global_attrs_2}
      >
          {children()}
      </p>
  }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions