mirror of
https://github.com/zulip/zulip.git
synced 2025-11-06 15:03:34 +00:00
This is a recent regression where we I refactored the toggle component. For some reason the old code was waiting until after the callback to set some of its state, and I did the same thing when I simplified how the state was stored. Under the old code, this didn't manifest as a bug, although the old code was problematic for other reasons. This "fix" doesn't actually change anything user facing, as the follow up commit fixes the proximal problem more directly. And the toggle component is still prone to people writing code that tries to inspect the state of the widget as it's being built.
4.7 KiB
4.7 KiB