From 4713a2c9f0940bd5f2ced41480eb0e40361caa85 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20=C5=A0kr=C3=A1=C5=A1ek?= Date: Thu, 4 Apr 2024 00:41:30 +0200 Subject: [PATCH] add warning about sealed Result --- readme.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/readme.md b/readme.md index 1111a64..f14c359 100644 --- a/readme.md +++ b/readme.md @@ -180,6 +180,9 @@ NavGraph { Another set of functionality is provided to support the result sharing. First, define the destination as `ResultDestination` type and specify the result type class. Then open the screen as usual and utilize `ComposableResultEffect` or `DialogResultEffect` to observe the destination's result. To send the result, use `NavController`'s extension `setResult`. +> [!WARNING] +> Do not make the Result class sealed as it may cause issue (see kiwicom/navigation-compose-typed#133). You may put a sealed type to a Result's property. + ```kotlin import com.kiwi.navigationcompose.typed.Destination import com.kiwi.navigationcompose.typed.DialogResultEffect