Do we have stateful Composables as compared to Sta...
# compose
m
Do we have stateful Composables as compared to Stateful and Stateless Widgets in Flutter?
s
Every Composable can be stateful by using remember { mutableStateOf() } or any of the extensions for Coroutines, Rx and LiveData
m
So, if a composable does not remember, it is stateless, right?
s
Yep
l
i’m curious: is that distinction useful to you in some way?
m
@Leland Richardson [G] I'm not really sure how would it benefit me. I watched your recent YouTube video on Compose and it was great, but I don't think you mentioned anything about a composable being stateful or stateless. So, my guess is it does not matter because state is always managed the same way in Compose, right?
l
Yeah I view whether it is stateful or not as an implementation detail, so no need to distinguish