-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
USER STORY: Infinite scroll for Profiles #66
Comments
Blocked by #59 |
the correct API response is received with the additional profiles, but not rendered
Contacted tutor support: John determined that InfiniteScroll was not even triggering. He tried several remediations, including hardcoding the dataLength, destructuring the setProfileData function and removing my conditional test that cuts out the one profile, but nothing worked. |
After some more searching on Stackoverflow, I found some suggestions that had to do with fixing the height of InfiniteScroll (or its container div.) Adding 'id="scrollableDiv"' to the parent container of Adding |
As for the Thus, but both |
An alternative fix to InfiniteScroll not triggering is to set the following CSS properties on its container.
The rest of the suggestion does not seem to change much. |
Solution by John Rearden: use a custom API call instead of using |
Make ProfileList div scrollable |
As a Use,
I want to browse profiles continuously,
so that I do not have to click a button to load more profiles
Acceptance Criteria
Tasks
npm install react-infinite-scroll-component
(if not already installed)fetchMoreData
in utils (if not already created)ProfileList
component, callProfile
insideInfiniteScroll
, withfetchMoreData
in thenext
propThe text was updated successfully, but these errors were encountered: