LceUseCaseExtension<DATA extends Object> extension
LceState stream extensions
- on
-
- LceUseCase<
DATA>
- LceUseCase<
Methods
-
map<
DATA_2 extends Object> (DATA_2 mapper(DATA data)) → LceUseCase< DATA_2> -
Creates a use-case wrapper that converts
DATA_1
toDATA_2
DATA_2
Resulting data typemapper
Data mapper -
refreshed(
) → LceUseCase< DATA> - Wraps use-case to refresh on each subscription
-
withRefresh(
Stream refresh) → Stream< LceState< DATA> > -
Takes the LceUseCase.state of model that is being refreshed each time
refresh
emits a value Useful when you create a model as a result of mapping of some input (params for example) and the LceUseCase.refresh property becomes invisible for the outside worldDATA
Source model data typerefresh
Whenever this stream emits a value, the model is refreshed