Remove spurious deps from toggle callbacks in text-menu*

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>
This commit is contained in:
Andrey Antukh 2026-04-22 06:35:22 +00:00 committed by Belén Albeza
parent 74d1288003
commit 7751d9a69b

View File

@ -348,12 +348,10 @@
;; --- Toggles
toggle-main-menu
(mf/use-fn
(mf/deps main-menu-open?)
#(swap! menu-state* update :main-menu not))
toggle-more-options
(mf/use-fn
(mf/deps more-options-open?)
#(swap! menu-state* update :more-options not))
toggle-token-dropdown