ag-grid-angular (w/ ag-grid-community) calls getRows of supplied datasource twice when datasource-binding is updated.

Created on 10 Dec 2019  路  3Comments  路  Source: ag-grid/ag-grid

I'm submitting a ... (check one with "x")

[x] bug report => see 'Providing a Reproducible Scenario'
[] feature request => do not use Github for feature requests, see 'Customers of ag-Grid'
[] support request => see 'Requesting Community Support'

Current behavior
When using the ag-grid angular component and (re)setting the datasource, data is requested twice from the underlying datasource (using infinite row model in this case). When debugging one can easily see that in ComponentUtil, the datasource is set twice when changes occur.
As InfiniteBlock.loadFromDatasource gets called twice then and getRows is called with a timeout, where a previously existing timeout is not cleared, we end up with multiple calls to getRows in the end.
See the following screenshots:

image

image

Workaround is to debounce the getRows function of the supplied datasource but this should not be necessary.

Expected behavior

When setting the datasource, its getRows is only called once to retrieve results.

Please tell us about your environment:

Windows, Webstorm, yarn

  • ag-Grid version: 22.1.0

  • Browser:

  • Language: [all]

managed-by-community wontfix

All 3 comments

Hi,

ag-grid staff does not provide support through github. If you are a customer please contact us through our official support channel. Note that this issue has been flagged as managed-by-the-community, we also recommend you to check stackoverflow, note that if there is no activity on this issue after a while we will close it.

Thanks

Hm, I'm not looking for support here but instead tried to submit a bug-report that affects ag-grid community and ag-grid enterprise.
What would be proper way to file a bug report then?

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Tokyros picture Tokyros  路  3Comments

WxWatch picture WxWatch  路  3Comments

m-nagy picture m-nagy  路  3Comments

squarewave24 picture squarewave24  路  3Comments

LuisPalacios picture LuisPalacios  路  3Comments