Skip to content

Commit

Permalink
chore: skip hydration for the cfRichTextDocument
Browse files Browse the repository at this point in the history
  • Loading branch information
valerymelou committed Aug 1, 2024
1 parent c9de940 commit ab8e732
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libs/blog/feature-article/src/lib/blog-article.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
}

<div class="my-10">
<div [cfRichTextDocument]="article.content">
<div [cfRichTextDocument]="article.content" ngSkipHydration>
<ng-container *cfRichTextNode="BLOCKS.HEADING_1; let node = node">
<h1
class="mb-4 text-2xl font-bold leading-[3rem] tracking-tight text-black lg:text-4xl dark:text-white"
Expand Down Expand Up @@ -139,7 +139,7 @@
>

<ng-container *cfRichTextMark="MARKS.CODE; let node = node">
<ui-code [code]="node.value" ngSkipHydration></ui-code>
<ui-code [code]="node.value"></ui-code>
</ng-container>
</div>
</div>
Expand Down

0 comments on commit ab8e732

Please sign in to comment.