Fixed issue where shared folder files were not visible by adding isAwaitingInitialFilesLoad check to prevent pagination from triggering while folders are loaded but files are still being fetched. Also memoized onNextPage with useCallback for performance and added comprehensive unit tests.
Description
Related Issues
Related Pull Requests
Checklist
- Changes have been tested locally.
- Unit tests have been written or updated as necessary.
- The code adheres to the repository's coding standards.
- Relevant documentation has been added or updated.
- No new warnings or errors have been introduced.
- SonarCloud issues have been reviewed and addressed.
- QA Passed