Const
Makes the target the session's active workspace, then calls onSwitch. A failed switch stays here: onSwitch lands on a page of the target workspace, which would render under the workspace the session is still in.
onSwitch
Makes the target the session's active workspace, then calls
onSwitch. A failed switch stays here:onSwitchlands on a page of the target workspace, which would render under the workspace the session is still in.