Skip to content

Commit

Permalink
assures that updateProps update inputs only for Component reference…
Browse files Browse the repository at this point in the history
… type
  • Loading branch information
riccardoperra committed Jan 6, 2025
1 parent 3b2f6fa commit f822645
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion packages/angular-table/src/flex-render/view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,17 @@ export class FlexRenderComponentView extends FlexRenderView<
}

override updateProps(props: Record<string, any>) {
this.view.setInputs(props)
switch (this.content.kind) {
case 'component': {
this.view.setInputs(props)
break
}
case 'flexRenderComponent': {
// No-op. When FlexRenderFlags.PropsReferenceChanged is set,
// FlexRenderComponent will be updated into `dirtyCheck`.
break
}
}
}

override dirtyCheck() {
Expand Down

0 comments on commit f822645

Please sign in to comment.