Utilising a default page_size on values and fields pages - but the datatable pagination component doesn't know about it. If no query param has been set, it assumes page_size is 10.
This then breaks if we have overridden as 20 - the pages numbers are off, and we have phantom pages.
We do not want to set the default page_size as a query param in a page - this would result in a rerender.
[ ] We want to be able to pass a default page_size down to the Pagination component, and override it.
[ ] a defaultPageSize prop, that defaults to 10 if nothing is set. This can be overruled by a query param.
[ ] This can also be used to select the right menu item, as currently we can set the default to 20 or 50, but it's still set to 10 in the pagination size menu. Inside the <SelectValue placeholder /> of DataTablePagination.tsx
Utilising a default page_size on values and fields pages - but the datatable pagination component doesn't know about it. If no query param has been set, it assumes page_size is 10. This then breaks if we have overridden as 20 - the pages numbers are off, and we have phantom pages.
We do not want to set the default page_size as a query param in a page - this would result in a rerender.
defaultPageSize
prop, that defaults to 10 if nothing is set. This can be overruled by a query param.<SelectValue placeholder />
ofDataTablePagination.tsx