Fixed
Status Update
Comments
ku...@gmail.com <ku...@gmail.com> #2
Comment has been deleted.
ku...@gmail.com <ku...@gmail.com> #3
Comment has been deleted.
ku...@gmail.com <ku...@gmail.com> #4
Thanks for the detailed analysis. This may not be an issue anymore since we've started using Main.immediate there but I' not sure; I'll try to create a test case.
jb...@google.com <jb...@google.com> #5
just emitting same live data reproduces the issue.
@Test
fun raceTest() {
val subLiveData = MutableLiveData(1)
val subject = liveData(testScope.coroutineContext) {
emitSource(subLiveData)
emitSource(subLiveData) //crashes
}
subject.addObserver().apply {
testScope.advanceUntilIdle()
}
}
@Test
fun raceTest() {
val subLiveData = MutableLiveData(1)
val subject = liveData(testScope.coroutineContext) {
emitSource(subLiveData)
emitSource(subLiveData) //crashes
}
subject.addObserver().apply {
testScope.advanceUntilIdle()
}
}
Description
Component used: Navigation
Version used: 2.3.4
Safe Args should upgrade to KotlinPoet 1.8.0 to ensure that the generated code handles more edge cases (via the bug fixes included in that release).