From f411293be8e9896372733f1692991b4e1d28b458 Mon Sep 17 00:00:00 2001 From: Martin K Date: Tue, 18 Mar 2025 11:34:25 -0400 Subject: [PATCH] [Docs] Decouple Screen class from State class in the docs example The Screen is kind of an API, allowing other code to navigate to it, but the State is internal to the Presenter and the Ui, so this updates the docs to not nest the State under the Screen as they are independent. --- docs/index.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/index.md b/docs/index.md index 5f670b51e..9914e9c46 100644 --- a/docs/index.md +++ b/docs/index.md @@ -45,7 +45,9 @@ There’s some glue code missing from this example that's covered in the [Code G ```kotlin @Parcelize -data object CounterScreen : Screen { +data object CounterScreen : Screen + +data object CounterCircuit { data class CounterState( val count: Int, val eventSink: (CounterEvent) -> Unit,