Each one of the 3 passes I mentioned can be triggered independently (ex. on window resize) and not necessarily one right after the other.
Do you mean the layout will get stuck in NoSidebarLayout and the user needs to reload the page to get it unstuck?