ngrid icon indicating copy to clipboard operation
ngrid copied to clipboard

invalidateColumns breaks other tables when used with RouteReuseStrategy

Open romgerman opened this issue 1 year ago • 0 comments

What is the expected behavior?

All tables work as expected.

What is the current behavior?

When you call invalidateColumns on a table that is inside a route-reusable component, then the table on next page will show no rows (and PblDataSource will not fire a onRenderedDataChanged event).

What are the steps to reproduce?

Click on any row and the table on next page will load indefinitely. Return back, try again, still happening. https://stackblitz.com/edit/pebula-ngrid-starter-cixddi?file=src/app/app.component.ts

Which versions of Angular, CDK, Material, NGrid, OS, TypeScript, browsers are affected?

In my project its [email protected], [email protected], [email protected], [email protected], [email protected]. Any browser.

Is there anything else we should know?

Workaround is not to use invalidateColumns when using RouteReuseStrategy.

romgerman avatar Mar 21 '23 16:03 romgerman