How to detect when conditional renderer is changing?

I have a custom bottom bar and am using conditional renderer to create the different views. But it takes a while for the conditional renderer to change. Is there some way to detect when it is changing to be able to show a spinner or loader. I know about the variables, but this is weird because it seems to actually take a while for the active tab variable to change. :thinking: