事象
以下のようなbyを使ったコード
val state by store.state.collectAsState()
byに対して
Type 'androidx.compose.runtime.State<com.studiomk.ktca.sample.counter.Counter.State>' has no method 'getValue(Nothing?, KProperty0<*>)', so it cannot serve as a delegate
解決方法
import androidx.compose.runtime.getValue
エラーそのままだがbyは実際にはgetValueを呼び出している