You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
onDidLayoutChange should be triggered only on following layout changes
Screenshots
-
Desktop (please complete the following information):
Browser Chrome on Mac
Version 124.0.6367.119
Additional context
As i see in debugger layout changes are fired through Emitter that triggers callbacks inside a setTimeout, looks like that's the reason why a onDidLayoutChange callback registered after adding panels catches those changes as a layout change.
We're implementing saving the layout to the database and for now have to bypass this behaviour with wrapping onDidLayoutChange listener with a setTimeout that doesn't look stable and relies on Emitter's behaviour.
The text was updated successfully, but these errors were encountered:
Describe the bug
onDidLayoutChange
callback is triggered after panels were initialised insideonReady
callback despite callback being registered after adding panels.To Reproduce
Steps to reproduce the behavior:
onDidLayoutChange
in the consoleExpected behavior
onDidLayoutChange
should be triggered only on following layout changesScreenshots
-
Desktop (please complete the following information):
Additional context
As i see in debugger layout changes are fired through Emitter that triggers callbacks inside a setTimeout, looks like that's the reason why a onDidLayoutChange callback registered after adding panels catches those changes as a layout change.
We're implementing saving the layout to the database and for now have to bypass this behaviour with wrapping onDidLayoutChange listener with a setTimeout that doesn't look stable and relies on Emitter's behaviour.
The text was updated successfully, but these errors were encountered: