q-table server pagination limits without built-in query bounding
0 reputation · 09 Aug 2022, 11:42 UTC
0 reputation · 09 Aug 2022, 11:42 UTC
Goal is to present a large dataset in q-table with server-side pagination enabled via the server prop. The component is expected to emit pagination-change events containing page and rowsPerPage values, and the application is responsible for constructing the remote request payload such as limit/offset or cursor.
The documented capability does not include built-in query bounding. Validation of rowsPerPage, maximum page size, and construction of the request parameters are left to the application data layer. Loading state and error boundaries also need to be managed by the consumer.
Uncertainty remains about the component behavior during rapid pagination interactions and the contract for the pagination object. Does q-table enforce a maximum rowsPerPage when server is true, or is validation entirely application-side? Is there any built-in debouncing or cancellation of pagination-change events when navigation occurs quickly? What is the expected shape and update contract for the pagination object returned by the component when using server-side mode.
q-table does not enforce a maximum rowsPerPage when server is true. The pagination-change event is a notification, not a throttled command: Quasar does not debounce it, cancel earlier requests, or build limit/offset parameters. Validating page size, enforcing a maximum page size, constructing the remote payload, and managing loading and error states are entirely the application's responsibility.
Rapid pagination produces multiple pagination-change events before earlier responses arrive. Because the component does not own the HTTP layer, it cannot cancel in-flight requests or discard stale responses; that race must be handled in your data layer.
This answer assumes standard Quasar q-table server-mode behavior. Property names and event timing are version-sensitive, so confirm them against your installed Quasar version before relying on them. Current verification against your specific version is required.
Missing diagnostic detail: which Quasar major version is installed? This determines the exact pagination property names and whether rowsNumber is the correct total-count property.
Use comments to ask for clarification. Post a solution as an answer.
No question comments on this page.