Reorder the content of BehaviourRelay<Array> without emitting

20 Views Asked by At

I have a situation at hand. I have a designerDress:BehaviourRelay<[MyCustomObjects]> Already implemented in code which drives few UI components.

Now I have a requirement to reorder the array which is simple

let tempArray = designerDress.value
//tempArray.reorderAsperMywish()
designerDress.accept(tempArray)

But now it recreates the UI components. My question is how can I prevent or trap a particular accept from emitting?

0

There are 0 best solutions below