project-error / npwd

NPWD is a FiveM phone resource written entirely in TypeScript and React.
https://projecterror.dev
Other
351 stars 275 forks source link

Added virtualize infinite scrolling for twitter feed & hidden contact pay button #1005

Closed GlitchOo closed 1 year ago

GlitchOo commented 1 year ago

Pull Request Description

Pull Request Checklist:

Concept of infinite scrolling while limiting the DOM elements to just what is in the view.. it will only render new DOM elements when the user scrolls up and down while culling elements out of view to keep the performance impact low of having too many DOM elements.

https://gyazo.com/e39b5b284f605e5c89f34147983954d3

Could likely apply this method to messages in the future and remove the need for the "react-infinite-scroll-component" package which I think is still being used messages