title: Show Snackbar in MainActivity (root @Composable) from any child composable (Jetpack Compose)
body: <p>I would like to show a snackbar in the MainActivity (root composable) from any child <code>@Composable</code>.</p>
  <p>My first thought was to provide the <code>SnackbarHostState</code> using <code>CompositionLocalProvider</code> but that doesn't seem to work (or I'm doing it incorrectly).</p>
  <pre class="lang-kotlin prettyprint-override"><code>
      val mainSnackBarHostState = remember { SnackbarHostState() }
      val SnackBarHostStateProvider = compositionLocalOf&lt;SnackbarHostState&gt; { mainSnackBarHostState }
  
      CompositionLocalProvider(SnackBarHostStateProvider provides mainSnackBarHostState) {
          MainScreenNavigationConfigurations(navController)
      }
  
  </code></pre>
  <p>My child <code>@Composable</code> can't seem to find/access <code>SnackBarHostStateProvider</code>.</p>
  <p>Any thoughts?</p>