Untitled
unknown
plain_text
2 years ago
482 B
52
Indexable
@HiltViewModel
class GoalExpansionViewModel @Inject constructor(
private val ucs: CURDUseCases,
private val cq : QueriesToGetChildren,
) : ViewModel()
{
private val _state = MutableStateFlow(GoalExpansionScreenState())
val state = _state.asStateFlow()
val cl = cq.getImmediateChildrenForAnId(state.value.headerId)
.stateIn(
scope = viewModelScope,
started = SharingStarted.WhileSubscribed(5000),
initialValue = emptyList()
)
}Editor is loading...