Hi @bvaughn, I am using react-window-infinite-loader along with FixedSizeGrid it is working properly, except in the scenario where the limit of data in API call is equal to column count. I am trying to find the reason but couldn't found yet. If anyone knows the reason then help..
here, the issue occurs when the value of allProjectsLimit and gridColumnCount both have same value. the issue is described below with example.
issue : I am fetching data from an API, it's an infinite scroll api so I need to pass limit in every api call. now for example, suppose there are 20 data items. and the limit of data items in a single API call is 5. and gridColumnCount is also 5
• ideal behaviour : there should be 5 API calls and all the data items should be displayed.
• current behaviour : only one api call is made and only 5 data items are displayed. there is no further loadMoreItems call.
Any help regarding above issue would be appreciated, Thanks.
Hi @bvaughn, I am using
react-window-infinite-loader
along withFixedSizeGrid
it is working properly, except in the scenario where the limit of data in API call is equal to column count. I am trying to find the reason but couldn't found yet. If anyone knows the reason then help..Below is the code snippets:
here, the issue occurs when the value of
allProjectsLimit
andgridColumnCount
both have same value. the issue is described below with example.issue : I am fetching data from an API, it's an infinite scroll api so I need to pass
limit
in every api call. now for example, suppose there are 20 data items. and thelimit
of data items in a single API call is 5. andgridColumnCount
is also 5• ideal behaviour : there should be 5 API calls and all the data items should be displayed. • current behaviour : only one api call is made and only 5 data items are displayed. there is no further
loadMoreItems
call.Any help regarding above issue would be appreciated, Thanks.