-
-
Save arkivanov/c19fbc0dac4b5c296cc4a888426fa17e to your computer and use it in GitHub Desktop.
asState() unresolved , in line 24
You have to add one of the Compose extension modules: https://github.com/arkivanov/Decompose#setup
Also please note, this is just a draft. Since Decompose is evolving, you may need to adjust the sample.
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
asState() unresolved , in line 24