Multiplatform-LiveData
Multiplatform-LiveData copied to clipboard
[BUG] Fix iOS addObserver
Bug Description:
When the KLiveData.observe(lifecycle,block) was called from iOS the observer was never notified with the updated values.
Root cause:
When calling the addObserver on the iOS actual implementation the KLifecycleAndObserver object was never added to the lifecycleObservers map so when the livedata emits an item the observer list is empty.