Skip to content

Commit

Permalink
chore: clarified comment
Browse files Browse the repository at this point in the history
  • Loading branch information
jfmcquade committed Mar 1, 2024
1 parent 33ac196 commit a406ad2
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@ export class TmplDataItemsComponent extends TemplateBaseComponent implements OnD
// TODO - deep diff and only update changed
this.itemRows = replacedActionRows;
this.cdr.markForCheck();
// Without this second check, and without the delay, the nested template does not render. Must be something async somewhere but I'm not sure what
// Without this second check, and without the delay, templates nested inside data-items loops do not render.
// There must be some async process somewhere but I'm not sure what it is
await new Promise<void>((resolve) => {
setTimeout(() => {
resolve();
Expand Down

0 comments on commit a406ad2

Please sign in to comment.