alvarotrigo / alvarotrigo/react-fullpage

prevent rerender on scroll..

Open
#407 1 comment 0 reactions 0 assignees View on GitHub
question
Dominant language
JavaScript
Stars
1.3k
Forks
172
PR merge metrics
No merged PRs in 30d

Description

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..

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.