Open
Bug 1832624
Opened 2 years ago
Updated 2 years ago
Remove original observeAsComposableState
Categories
(Firefox for Android :: General, enhancement, P3)
Tracking
()
NEW
People
(Reporter: matt-tighe, Unassigned)
References
Details
(Whiteboard: [fxdroid])
With the introduction of the non-nullable observeAsComposableState
in this patch, we could potentially remove the old nullable version to clean up a lot of unnecessary null guarding.
- Check whether all usages can safely provide a initial value (from a store or otherwise)
- Refactor all old
fun <S : State, A : Action, R> Store<S, A>.observeAsComposableState(map: (S) -> R): ComposeState<R?>
usages to the new signature:
@Composable
fun <S : State, A : Action, R> Store<S, A>.observeAsComposableState(
initialValue: R,
map: (S) -> R,
): ComposeState<R> {
Updated•2 years ago
|
Reporter | ||
Comment 1•2 years ago
|
||
It's also worth considering the impact this would have on other A-C consumers.
Updated•2 years ago
|
Severity: S4 → N/A
You need to log in
before you can comment on or make changes to this bug.
Description
•