-
Notifications
You must be signed in to change notification settings - Fork 811
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
Performance for dynamic and heavy modal content #335
Comments
@murugaratham hmm,...maybe you can class MyModal extends Modal {
shouldComponentUpdate() { ... }
} |
@murugaratham is the patch above solves your issue or did you found out another way? |
The same is here - with react-datepicker it's very slow. Especially on mobiles. |
Hi @alex-shamshurin, can you provide more info about this? |
Can you provide a reproducible example of your problem? |
Sorry, I discovered a problem is in react-datepicker itself (in my configuration). |
Ok. Thanks @alex-shamshurin. |
Summary:
Steps to reproduce:
Expected behavior:
Opening and closing modal should not rerender/update modal content
Additional notes:
Can add a prop to disable shouldComponentUpdate?
The text was updated successfully, but these errors were encountered: