I am using ui.sidebar and would like to run a function when its collapsed vs when its opened. I tried to use the $$(‘sidebar’).getState()[‘collapsed’] to get the state of the sidebar but my return object from getState() only has the following:
{open: Array(0), select: Array(0)}