molecule icon indicating copy to clipboard operation
molecule copied to clipboard

Build a StateFlow stream using Jetpack Compose

Results 35 molecule issues
Sort by recently updated
recently updated
newest added

Compose UI's `CoreTextField` is very picky about getting immediate updates to its values. The common (but useless) example seen in the docs, where the text state is held in a...

Compose State can be used in this PR of Compose when creating a UiModel with ViewModel. It can be used without StateFlow.collectAsState() when the user's UI is Compose. This change...

This is a tracking issue for removing the 'molecule-testing' artifact. You can test a Molecule with the `Immediate` clock and [Turbine](https://github.com/cashapp/turbine/). Do you have a use case which is only...

Reproducing project is here: https://github.com/steve-the-edwards/reproductions/tree/main/overridetest ``` abstract class AndroidLibAbstractClass { @Composable abstract fun AComposableWithLambda( input1: I1, input2: I2, hoistState: @Composable (T) -> Unit ): Unit @Composable abstract fun AComposableWithoutLambda( input1:...

Not sure this is something that can be addressed easily because of [this coroutines issue](https://github.com/Kotlin/kotlinx.coroutines/issues/2605) noted in `MoleculeTestingTest`, but it would be great for tests that require time manipulation.

``` app.cash.molecule.MoleculeTest > errorDelayed FAILED java.lang.AssertionError: expected: but was: at org.junit.Assert.fail(Assert.java:89) at org.junit.Assert.failNotEquals(Assert.java:835) at org.junit.Assert.assertEquals(Assert.java:120) at org.junit.Assert.assertEquals(Assert.java:146) at app.cash.molecule.MoleculeTest.errorDelayed(MoleculeTest.kt:126) ```

bug
PR welcome

Bare minimum added in #52 so we could flip the public bit and push the first preview (after _only_ 5 months). The KDoc should subsume or mirror some of the...

I omitted them from #51 because our internals have changed significantly and my testing approach then was wrong. This issue tracks re-introducing the tests

Basically mirroring the problems we saw without pulling in the whole Rx dependency or using Rx.