-
-
Notifications
You must be signed in to change notification settings - Fork 66
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
Really fast effect after scroll up/down #6
Comments
I have the same trouble. Can someone help me? |
I fixed it ! I made my own lib ^^ |
Same here, if I use onScroll and setState |
As long as you do not setState in a parent or in the same component it seems to work |
@lps83 Can you share it? :D |
I solved this problem by using React.memo, here is a sample code if anyone need const TypingAnimation = React.memo(()=>{
return <Typical
loop={Infinity}
wrapper="p"
steps={
[
'Hello',
1200,
'World',
1200,
]
}
/>
},(props,prevProp)=> true ); // this line prevent re rendering |
Thanks @whoami-shubham it made the trick! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Same effect x100 on a one page
The text was updated successfully, but these errors were encountered: