Untitled
unknown
plain_text
6 months ago
482 B
39
Indexable
Never
@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() ) }