title: Is it necessary to hide a screen when creating a new one in Jetpack Compose?
body: <p>I am building an auth system. If the user is authenticated I display a profile screen, otherwise I display a sign in screen:</p>
  <pre><code>if(isAuthenticated) {
      ProfileScreen()
  } else {
      SignInScreen()
  }
  </code></pre>
  <p>Each screen is a composable function. Now, I'm listening to the sign out event and:</p>
  <pre><code>if(userIsSignedOut) {
      SignInScreen()
  }
  </code></pre>
  <p>As per my understanding, if the user signs out, I'm creating a new screen (<code>SignInScreen</code>) right on top of the other (<code>ProfileScreen</code>) screen. If the screens were activities, I have used <code>finish()</code>. Is it the same here? Should I do something similar here? Do I have close/hide the previous screen somehow?</p>