I have two separate Rxjs forkjoins. We always run the first one and the second one might run conditionally. But we need to take an action when both are complete or when the first one is complete (if the second one is not called).
How can I achieved it?
sub1 = forkjoin([item1, item2])
sub2 = forkjoin([item3, item4])