Skip to content

Commit

Permalink
Fixed build error with currentKeyAsState() function
Browse files Browse the repository at this point in the history
  • Loading branch information
chRyNaN committed Dec 19, 2021
1 parent 9c2d1ac commit 2be40b2
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,5 @@ import androidx.compose.runtime.collectAsState
* @see [collectAsState]
*/
@ExperimentalNavigationApi
@Composable
fun <T> ComposeNavigator<T>.currentKeyAsState(): State<T?> = keyChanges.collectAsState(initial = currentKey)

0 comments on commit 2be40b2

Please sign in to comment.