You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
so when i try to multi trigger events it doesnt work correctly, for example i was testing BlogViewModel in init method i called some onTriggerEvent on purpose, then i find out list sets empty, why this happened? what we should do to solve that?
The text was updated successfully, but these errors were encountered:
so finally after two days i think i got solution:
i tied to use old fashioned way
i deleted:
this.state.value = state.copy(
order = order,
filter = filter
)
and used this:
fungetCurrentViewStateOrNew(): BlogState{
val value = state.value?.let{
it
}?:BlogState()
return value
}
funsetViewState(viewState:BlogState){
state.value = viewState
}
i have no idea why this works and why that one doesn't works, any idea?
so when i try to multi trigger events it doesnt work correctly, for example i was testing BlogViewModel in init method i called some onTriggerEvent on purpose, then i find out list sets empty, why this happened? what we should do to solve that?
The text was updated successfully, but these errors were encountered: