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

Make convo menu lazy #7604

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Make convo menu lazy #7604

wants to merge 2 commits into from

Conversation

mozzius
Copy link
Member

@mozzius mozzius commented Jan 27, 2025

Stacked on #7603

An easy optimisation to make the chat list faster. Nesting the contents of the convo menu inside Menu.Outer makes it lazy, so it only renders once the dialog opens.

Test plan

Ensure all the buttons work
Add a console log to MenuInner to confirm it's now lazy

Copy link

Old size New size Diff
7 MB 7 MB 484 B (0.01%)

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.

2 participants