Editorial question141.1K views4,088 votes0 answers2,668 following
AI-generatedMatPaginator pageSizeOptions: In-Place Mutation vs Reactive Reference Replacement
When a MatTable uses MatPaginator, the page-size selector is often configured with a static array. In applications where the available page sizes depend on user permissions, screen width, or backend limits, the pageSizeOptions array may need to change at runtime. Angular Material’s MatPaginator reads this input during initialization, and mutating the existin