iron-data-table component has a dataSource property which is a function
it also contains _pagesLoading
when the new function is being assigned to dataSource and the page is currently being loaded (slow connection) then observers are being triggered
_resetData clears selection, cache but does not clear loading pages
as a consequence the _loadPage is calling the previously set (or in my case unset) dataset function and the page is never being loaded
to put it in more detail:
The problem happens after the initial dataSource was invoked by the table and the page[0] started loading, but before the dataSource returned data to the callback (slow connection). Then the new dataSource is reassigned but the data are (in the above image check "else if" statement) not requested from the new dataSource, since the page is still registered in _pagesLoading.
We believe that the _pagesLoading should be reset when the table gets a new dataSource, along the lines of resetData method.
iron-data-table component has a dataSource property which is a function
it also contains _pagesLoading
when the new function is being assigned to dataSource and the page is currently being loaded (slow connection) then observers are being triggered
_resetData clears selection, cache but does not clear loading pages
as a consequence the _loadPage is calling the previously set (or in my case unset) dataset function and the page is never being loaded
to put it in more detail:
The problem happens after the initial dataSource was invoked by the table and the page[0] started loading, but before the dataSource returned data to the callback (slow connection). Then the new dataSource is reassigned but the data are (in the above image check "else if" statement) not requested from the new dataSource, since the page is still registered in _pagesLoading.
We believe that the _pagesLoading should be reset when the table gets a new dataSource, along the lines of resetData method.