Skip to content

Commit

Permalink
improve view flags, handle state update in zoneless
Browse files Browse the repository at this point in the history
  • Loading branch information
riccardoperra committed Jan 5, 2025
1 parent 9d57db0 commit 144f0b7
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions packages/angular-table/src/flex-render.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,20 +112,14 @@ export class FlexRenderDirective<TProps extends NonNullable<unknown>>
return
}

console.log('go into do check')

// TODO: Optimization for V9 / future updates?. We could check for dirty signal changes when
// we are able to detect whether the table state changes here
// const isChanged =
// TODO: Optimization for V9 / future updates?.
// We could check for dirty signal changes when we are able to detect whether the table state changes here
// const isChanged =
// this.renderFlags &
// (FlexRenderFlags.DirtySignal | FlexRenderFlags.PropsReferenceChanged)
// if (!isChanged) {
// return
// }
// if (this.renderFlags & FlexRenderFlags.DirtySignal) {
// this.renderFlags &= ~FlexRenderFlags.DirtySignal
// return
// }
// if (!isChanged) {
// return
// }

this.renderFlags |= FlexRenderFlags.DirtyCheck
this.checkViewChanges()
Expand Down

0 comments on commit 144f0b7

Please sign in to comment.