I have an stream changes$ that emits data:
interface Data {
id: number,
prop: string
}
This stream is switched by another that makes http request.
In the end I subscribe to response:
.subscribe((response =>apply() );
How dont call apply() method if before getting response from last request a new data were emitted to initial stream?
Because despite http request was sent the data is outdated, cause source stream changes$ emits a new data.