Nicolai
04/01/2022, 2:59 PMval observableActionsFilteredByPageId = Transformations.switchMap(filterPageId)
However, now I want to filter that data with different values. Meaning that for each page I would need multiple lists filtered by some other parameter... Something like this:
val contentView = observableActionsFilteredByPageId.map { actions ->
actions?.filter { it.actionType == "action_contentView" }
}
val notifications = observableActionsFilteredByPageId.map { actions ->
actions?.filter { it.actionType == "action_notification" }
}
Would this be a proper way to do it or am I using the APIs wrongly?
Thanks for your time!Ali
04/02/2022, 12:40 PM