gbaldeck
07/03/2021, 4:06 PMremember supposed to be usable with the by keyword like below?
var loadingState by remember { mutableStateOf(Startup.LOADING) }
I am not able to use it most of the time and the IDE reports the error:
Type 'TypeVariable(T)' has no method 'getValue(Nothing?, KProperty<*>)' and thus it cannot serve as a delegate
In compose examples I see remember used with the by keyword, am I missing something?
Here's my imports:
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.rememberArkadii Ivanov
07/03/2021, 4:12 PMandroidx.compose.runtime.get(set)Valuegbaldeck
07/03/2021, 4:13 PMYan Pujante
07/04/2021, 1:07 PM