Open danilomartinelli opened 4 months ago
Hey!
Thank you for the detailed issue. I'll give a try to the pagination feature, it's been a while since it was tested (my bad -- there's no working example on that nor any test).
I'll try to do this ASAP (ETA : a week maybe?).
Cheers 🙌
Hey pierpo! How are you? Any updates? Do you need help with that problem?
Hey! Sorry I totally forgot to give news on this. I did an example on the project... and it worked well 😱
You can check out this branch: fix/repro-pagination
and have a look at the example, see if there is any difference with what you've done 🤔
Hey @danilomartinelli, did you have a chance to have a look? 😁
Describe the bug The SpatialNavigationVirtualizedList component does not display more than the initial set of items when fetching additional data on reaching the end of the list. The UI does not render the newly fetched items even though the data is correctly fetched and available.
To Reproduce
Expected behavior When the onEndReached function is triggered and new data is fetched, the component should render the additional items. For example, if the initial set of 8 items is displayed, and 8 more items are fetched, the component should then display a total of 16 items.
Screenshots Due to confidentiality terms, I cannot provide screenshots. If necessary, I can recreate the code with alternate names for demonstration purposes. Please feel free to let me know if you need further details or additional context.
Version and OS
Additional context The issue is observed when running the development environment with the target set for web using the command:
Here are additional code snippets for the hook and its respective calls: