| 108 | } |
| 109 | |
| 110 | ngDoCheck(): void { |
| 111 | if (this.renderFlags & FlexRenderFlags.ViewFirstRender) { |
| 112 | // On the initial render, the view is created during the `ngOnChanges` hook. |
| 113 | // Since `ngDoCheck` is called immediately afterward, there's no need to check for changes in this phase. |
| 114 | this.renderFlags &= ~FlexRenderFlags.ViewFirstRender |
| 115 | return |
| 116 | } |
| 117 | |
| 118 | this.renderFlags |= FlexRenderFlags.DirtyCheck |
| 119 | |
| 120 | const latestContent = this.#getContentValue() |
| 121 | if (latestContent.kind === 'null' || !this.renderView) { |
| 122 | this.renderFlags |= FlexRenderFlags.ContentChanged |
| 123 | } else { |
| 124 | this.renderView.content = latestContent |
| 125 | const { kind: previousKind } = this.renderView.previousContent |
| 126 | if (latestContent.kind !== previousKind) { |
| 127 | this.renderFlags |= FlexRenderFlags.ContentChanged |
| 128 | } |
| 129 | } |
| 130 | this.update() |
| 131 | } |
| 132 | |
| 133 | update() { |
| 134 | if ( |