-
-
Notifications
You must be signed in to change notification settings - Fork 407
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
#493 - Add virtual scroll for HowtoList #962
Conversation
- Add react-virtualized package
@@ -22,6 +24,11 @@ interface IState { | |||
isLoading: boolean | |||
} | |||
|
|||
const breakpointsInPX = themes.breakpoints.map( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here I was not sure how to access the theme properties. Is this ok? Is there an alternative to this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep that's it :)
Test summaryRun details
View run in Cypress Dashboard ➡️ This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard |
Hey @tudi2d thanks a lot for your work ! |
Thanks again for the work on this and sorry for my slow response, been a bit swamped for the past week. Will review this weekend and get back to you. |
Apologies again for the slow reply to this. Took a while to understand what was going on (particularly why to divide up chunks instead of using masonry or grid, but then realised for use within the window scroller), but now it makes a lot of sense and works well. I've tidied up the code a bit, but as I can't add commits on top of your fork pr I'll merge this and then create another pr with the changes. Thanks again |
@tudi2d - We're starting to setup a bug bounty programme to show appreciation to developers who contribute to the platform. This issue was nominated as one to reward for May, so if you send me your Paypal details I can add you to the list for future payments. Either email me at chris.m.clarke@live.co.uk or find me on PP slack or discord as chrismclarke. The amounts are pretty small at the moment as we don't haven't much funds for the platform yet (so possibly not time to quit the day-job just yet!), but at least it's a start and hopefully a step in the right direction. |
PR Type
PR Checklist
master
branch mergedDescription
It adds a virtual scroll for the HowtoList to reduce initial rendering and only render the needed Howto´s for every visitor. It will render additional Howto´s while rendering, while removing Howto´s which are not in the viewport.
Therefor I added react-virtualized as discussed in the Issue. First I thought react-window would be good enough, but it does not support a Window scroll feature and there for react-virtualized was my choice here.
Git Issues
Closes #493