Last active
August 4, 2023 12:29
-
-
Save arkivanov/c19fbc0dac4b5c296cc4a888426fa17e to your computer and use it in GitHub Desktop.
Compose-like navigation with Decompose
it said "Type 'State<TypeVariable(T)>' has no method 'getValue(Nothing?, KProperty<*>)' and thus it cannot serve as a delegate" , i know that is just a draft but i can't do navigate with documentation you provide to use decompose , can you help me with simple example to navigate between two screen
I am using this extension "com.arkivanov.decompose:extensions-compose-jetbrains:0.1.5"
it now work i update it to be val routerState = router.state.asState() instead of delegate
update it :)
It is a known issue: https://youtrack.jetbrains.com/issue/KT-39199
You need to manually import getValue extension function:
import com.arkivanov.decompose.extensions.compose.jetbrains.getValue
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Also please note, this is just a draft. Since Decompose is evolving, you may need to adjust the sample.