Skip to content

Commit

Permalink
fix: enable computed rowModels
Browse files Browse the repository at this point in the history
  • Loading branch information
riccardoperra committed Jan 6, 2025
1 parent 79569bd commit 4f0149a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/angular-table/src/proxy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ export function proxifyTable<T>(
if (
property.startsWith('get') &&
!property.endsWith('Handler')
// Non-reactive properties like `getCoreRowModel` prevent to use latest row `getContext` in some cases
// e.g. getCoreRowModel, getSelectedRowModel etc.
// We need that after a signal change even `rowModel` may mark the view as dirty.
// This allows to always get the latest `getContext` value while using flexRender
// && !property.endsWith('Model')
) {
const maybeFn = table[property] as Function | never
Expand Down

0 comments on commit 4f0149a

Please sign in to comment.