Skip to content

Commit

Permalink
Updated currentContextAsState parameter name
Browse files Browse the repository at this point in the history
  • Loading branch information
chRyNaN committed Feb 28, 2022
1 parent b27b237 commit 0ed1a60
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ fun <Key> ComposeNavigator<Key>.currentKeyAsState(): State<Key> =
*/
@ExperimentalNavigationApi
@Composable
fun <Context, Key> ComposeContextNavigator<Context, Key>.currentContextAsState(initialCurrentScope: Context): State<Context> =
contextChanges.collectAsState(initial = initialCurrentScope)
fun <Context, Key> ComposeContextNavigator<Context, Key>.currentContextAsState(initialCurrentContext: Context): State<Context> =
contextChanges.collectAsState(initial = initialCurrentContext)

/**
* Obtains the changes to the [ComposeContextNavigator.currentContext] value and returns it as a [State]. This allows it
Expand Down

0 comments on commit 0ed1a60

Please sign in to comment.