Discontinue considering content rendered if only the empty string would be rendered.
@@ -499,8 +499,12 @@ export class FalsinessRenderer implements IdomRendererApi {
}
text(value: string) {
+ // This helps ensure that hydrations on the server are consistent with
+ // client-side renders.
+ if (value) {
this.rendered = true;
}
+ }
attr(name: string, value: string) {
this.rendered = true;
