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