Skip to content

Commit d229cfe

Browse files
committed
#159 fix invalid value pass in livedata
1 parent 16a3af9 commit d229cfe

File tree

1 file changed

+1
-1
lines changed
  • mvvm-livedata/src/nonAndroidMain/kotlin/dev/icerock/moko/mvvm/livedata

1 file changed

+1
-1
lines changed

mvvm-livedata/src/nonAndroidMain/kotlin/dev/icerock/moko/mvvm/livedata/LiveData.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,6 @@ actual open class LiveData<T>(initialValue: T) {
2323
protected fun changeValue(value: T) {
2424
storedValue = value
2525

26-
observers.forEach { it(value) }
26+
observers.forEach { it(storedValue) }
2727
}
2828
}

0 commit comments

Comments
 (0)