Devik0213 / memo

메모
1 stars 0 forks source link

StateFlow #43

Open Devik0213 opened 3 years ago

Devik0213 commented 3 years ago

inspired by https://medium.com/swlh/migrating-from-livedata-to-stateflow-4f28d6889a04

요약

LiveData 의 문제점

그래서 StateFlow 는 뭔가?

StateFlow is a state-holder observable flow that emits the current and new state updates to its collectors. The current state value can also be read through its value property. To update state and send it to the flow, assign a new value to the value property of the MutableStateFlow class.

Flow Constraints(제약/준수 사항)

CodeLabLink

참고사항