Skip to content

Commit 4bd8624

Browse files
committed
Tweak to default onNavigate()
Log `keyFor(it)` by default instead of `it.toString()`. Latter is almost guaranteed to be noisy and inefficient.
1 parent ee4f864 commit 4bd8624

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

workflow-ui/core-common/src/main/java/com/squareup/workflow1/ui/navigation/NavigationMonitor.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import kotlinx.coroutines.flow.onEach
1919
*/
2020
public class NavigationMonitor(
2121
skipFirstScreen: Boolean = false,
22-
private val onNavigate: (Any) -> Unit = { println(it) }
22+
private val onNavigate: (Any) -> Unit = { println(Compatible.keyFor(it)) }
2323
) {
2424
@Volatile
2525
private var lastKey: String? = if (skipFirstScreen) null else ""

0 commit comments

Comments
 (0)