We are experiencing an issue where a query is triggered twice when using table pagination to pass the page number and page size to the query. The query is set to run automatically, and the problem occurs when the totalRowCount
field is updated during pagination. This redundant triggering results in unnecessary network calls and affects performance.
Steps to Reproduce:
- Set up a table component with server-side pagination enabled.
- Configure the query to accept
pageNumber
andpageSize
as inputs. - Set the query to run automatically.
- Configure the table’s pagination
totalRowCount
field to update dynamically based on thetotalRecords
received in the query response. - Launch the app, observe that the query is triggered twice in succession when the
totalRowCount
is updated.