Fred Porciúncula

Results 11 comments of Fred Porciúncula

Thanks for the contribution! Are the tests passing consistently for you locally? `testFlowConflatedBehavior` failed [on the CI](https://github.com/tfcporciuncula/flow-preferences/runs/7523677015?check_suite_focus=true).

It's still [failing on CI](https://github.com/tfcporciuncula/flow-preferences/runs/7649815557?check_suite_focus=true) unfortunately :( > com.fredporciuncula.flow.preferences.tests.PreferenceTest > testFlowConflatedBehavior[test(AVD) - 9] FAILED missing (1): 50.0 Are you running the tests locally on a real device or on an...

Thanks for the example and all the details! I'll try to reproduce it on my end and take a look at it.

From what I can see, this is just how the [conflation](https://github.com/tfcporciuncula/flow-preferences/blob/565faeaee64f1110558c577cd53429e92f15f3c3/flow-preferences/src/main/java/com/fredporciuncula/flow/preferences/BasePreference.kt#L35) works. If you forget about the library and just run something like this: ```kotlin val flow = MutableStateFlow(0f) //...

Using `update` or setting the value directly as I did leads to the same result I mentioned. The underlying implementation in the library is extremely simple: ```kotlin val SharedPreferences.keyFlow get()...

>The conflate buffer is full and Y is just dropped? There's no buffer when we conflate, that's the premise of it. Conflation is used when all we care is the...

Oh ok, maybe I have indeed not fully understood the problem. I'm unable to reproduce that case, so it's hard for me to help. Do you think you'd be able...

Thanks for the re-investigation! >So the listener event started by 30 will change to a 50 inside the flow. Then the flow continues to the collection and prints 50. Afterwards...

Nope. As I mentioned above, it doesn't matter how I define the space at the top (margin, padding, `Space` widget) the issue persists.

Here's a couple of links that might help with the migration: https://chris.banes.dev/publishing-to-maven-central/ https://github.com/autonomousapps/dependency-analysis-android-gradle-plugin/blob/main/PUBLISHING.asciidoc