mirror of
https://github.com/penpot/penpot.git
synced 2026-04-30 13:49:06 +00:00
toggle-main-menu and toggle-more-options close over a state atom and need no external deps. The declared deps (main-menu-open? / more-options-open?) were unused inside the function bodies, causing each callback to be reallocated on every toggle — self-reinforcing churn. Drop the mf/deps calls to make both callbacks stable. Signed-off-by: Andrey Antukh <niwi@niwi.nz>