jw
11/12/2022, 3:29 AMlaunchMolecule
by the time you get the StateFlow
returned a single recomposition has run. If you are using moleculeFlow
then it will emit immediately, although i'm not sure if that involves posting to the dispatcher or not.Aaron Todd
11/14/2022, 9:34 PMjessewilson
11/14/2022, 9:58 PMConnection: close
jessewilson
11/14/2022, 9:58 PMTadeas Kriz
11/14/2022, 10:43 PMjw
11/14/2022, 11:02 PMAaron Todd
11/15/2022, 4:03 PMmaxIdleConnections
but says nothing of maximum total connections allowed to be created/active.
I also am not seeing an equivalent of a connectAcquireTimeout
...eygraber
11/16/2022, 6:46 AMtext
directly in the onValueChange
callback, but that's now explicitly creating multiple sources of truth (which may be better than the current implicit multiple sources of truth, but is still not great).
I haven't played around much with Redwood other than with the samples, so I'm not sure if this is an isolated issue with TextField
because onValueChange
can be called OOB (because of IME, etc...), or if there are problems with other composables as well. In any case, having to handle it for even just TextField
seems like a high burden to someone using Redwood.jw
11/16/2022, 10:32 AMMarc Plano-Lesay
11/16/2022, 12:05 PMTextController
, which is required for "legacy" views as well, not just Compose, for what it's worth. Ensuring a single source of truth for text inputs is inherently tricky.eygraber
11/16/2022, 4:09 PMTextController
/ TextFieldState
and put a disclaimer in the readme that this is how text needs to be handled?
While in practice this might only affect text, in theory couldn't this affect any component where the value is provided from a callback?Tadeas Kriz
11/16/2022, 10:23 PMjw
11/16/2022, 10:28 PMTadeas Kriz
11/16/2022, 10:29 PMModifier.padding
in Compose UI is a freestanding modifier that's not scope-specific. One other thing I wanted to try implementing was Modifier.clickable
, but I wasn't sure it that'd work at alljw
11/16/2022, 10:34 PMTadeas Kriz
11/16/2022, 10:36 PMjw
11/16/2022, 10:36 PMTadeas Kriz
11/16/2022, 10:39 PMStylianos Gakis
11/16/2022, 10:46 PMjw
11/16/2022, 10:50 PMjw
11/16/2022, 10:50 PMStylianos Gakis
11/16/2022, 10:56 PMLandry Norris
11/17/2022, 2:03 PMdave08
11/20/2022, 1:16 PMdave08
11/20/2022, 1:19 PMdave08
11/20/2022, 3:56 PM@SuppressLint("FlowOperatorInvokedInComposition")
for each of them? It seems to me that in the context of Molecule presenters there's no real problem in transforming/filtering flows... maybe there's a way for the library to suppress those warnings for it's functions somehow?dave08
11/21/2022, 4:07 PMMainScope()
in my ViewModel
for launchMolecule()
? It seems like viewModelScope
doesn't work...dave08
11/21/2022, 4:08 PMdave08
11/21/2022, 4:11 PMjava.lang.IllegalStateException: A MonotonicFrameClock is not available in this CoroutineContext. Callers should supply an appropriate MonotonicFrameClock using withContext.
error...dave08
11/21/2022, 4:12 PMdave08
11/21/2022, 4:12 PM