waveterm/frontend/app/hook
Evan Simkowitz 383a71fc25
Fix infinite loop in layoutAtom, improve iconbutton disable code (#306)
Fixes an infinite loop in the layoutModel atom synchronization that
would cause the atom to update indefinitely when the root node is
deleted.

Also adds a dedicated `disabled` flag for the IconButton decl so we can
disable the onClick handler when the button is disabled.

Also updates the Magnify toggle button to use this new flag, so that
when there's only one leaf in a layout, the magnify button is disabed.
2024-09-03 11:24:45 -07:00
..
useDimensions.tsx suggestions modal (#260) 2024-08-23 00:18:49 -07:00
useHeight.tsx Update copyright indicators on a bunch of files (#255) 2024-08-20 17:01:29 -07:00
useLongClick.tsx Fix infinite loop in layoutAtom, improve iconbutton disable code (#306) 2024-09-03 11:24:45 -07:00
useWidth.tsx Update copyright indicators on a bunch of files (#255) 2024-08-20 17:01:29 -07:00