bluesky-social / social-app

The Bluesky Social application for Web, iOS, and Android
https://bsky.app
MIT License
12.74k stars 1.62k forks source link

Render post menu items lazily (take two) #6473

Closed gaearon closed 6 days ago

gaearon commented 1 week ago

Resubmit of https://github.com/bluesky-social/social-app/pull/6437.

I broke dialogs in https://github.com/bluesky-social/social-app/pull/6437. We can't put dialogs inside the <Menu.Outer> conditionally rendered content because that would destroy their state and controls, and those need to be alive even after the dialog is closed.

Now I'm unreverting it but applying a few more fixes on top:

Test Plan

Verify the menu works. Verify the dialogs within the menu also work (unlike last time). Verify you can toggle the menu repeatedly. Refresh the page and verify that you can also toggle the menu (both once and repeatedly) using keyboard.

Do this on all platforms.

github-actions[bot] commented 1 week ago
Old size New size Diff
8.05 MB 8.05 MB 0 B (0.00%)

mozzius commented 6 days ago

Tested on all platforms, works well