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

Revert "Render dropdown menu items lazily" #6470

Merged
merged 1 commit into from
Nov 17, 2024

Conversation

gaearon
Copy link
Collaborator

@gaearon gaearon commented Nov 17, 2024

Reverts #6437

I missed that this breaks the dialogs. I'm struggling to figure out a way to split the component in a way that the current useDialogControl / <Dialog> abstraction still works so let's revert for now.

Test Plan

Dialogs in the sheet work again.

@arcalinea arcalinea temporarily deployed to revert-6437-move-dropdown-items - social-app PR #6470 November 17, 2024 20:58 — with Render Destroyed
Copy link

Old size New size Diff
8.05 MB 8.05 MB -716 B (-0.01%)

@gaearon gaearon merged commit 0b38c77 into main Nov 17, 2024
6 checks passed
@gaearon gaearon deleted the revert-6437-move-dropdown-items branch November 17, 2024 21:06
gaearon added a commit that referenced this pull request Nov 17, 2024
mozzius pushed a commit that referenced this pull request Nov 19, 2024
gaearon added a commit that referenced this pull request Nov 19, 2024
* Revert "Revert "Render dropdown menu items lazily (#6437)" (#6470)"

This reverts commit 0b38c77.

* Lazily initialize menu items

* Split in two files

* Make it work on mobile

This is wonky because our useMenuDialog abstraction only has `isOpen` on web. I couldn't figure out a way to make it work xplat so I'm just tracking it myself manually.

* Fix typo in comment
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.

3 participants