react-fullpage icon indicating copy to clipboard operation
react-fullpage copied to clipboard

prevent rerender on scroll..

Open jaeeewon opened this issue 3 years ago • 1 comments

react-fullpage calls render function with event like onLeave, afterLoad events.. that leads too many rerenders..

so.. i've developed to render empty div if component's index isn't current index.

but not resolved since it calls twice per scroll (onLeave, afterLoad) and result in render hundreads of empty components twice..

is there any way to reduce rerender number of times? i render about hundreads of elements with memoization..

sincerely..

jaeeewon avatar Mar 26 '23 04:03 jaeeewon

What is exactly the problem you face with the re-renders?

When scrolling up/down on the example I can't see any re-writes on the DOM except the necessary ones with the state classes.

alvarotrigo avatar Mar 26 '23 19:03 alvarotrigo