Skip to content
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

BuildMenuOptions only when menu is opened #3569

Merged
merged 5 commits into from
Jun 2, 2019
Merged

BuildMenuOptions only when menu is opened #3569

merged 5 commits into from
Jun 2, 2019

Conversation

vadimka123
Copy link
Contributor

Very big performance issue: buildMenuOptions only when menu is opened
I'm have page with ~1000 selects with a ~1000 options. When render this page it takes ~ 40-50s and while page either hangs terribly or crashed. After this update page render takes 10s and there are no hangs. It's very need update.

@JedWatson
Copy link
Owner

Thanks @vadimka123 this is a very helpful change. Will be included in the next release.

@yuri-scarbaci-lenio
Copy link

For anyone having troubles updating from 2.4.4 to latest releases,

this looks like it could be a breaking change depending on how you interacted with the menu ( for example if your logic had a custom menu and a reference to it, your reference.current would now be null instead of your menu ref as it used to, which is indeed a breaking change )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants