- Added a variable to track first render so default skeleton does not appear after InfiniteScroll component is rendered.
The isLoading variable is set to true when you scroll down and there are more files pending to load. So, the condition to render the skeleton was triggered everytime we fetch new files. InfiniteScroll does this automatically.
2023-09-01-11-51-18.mp4