Currently, I am attempting to utilize the skip operator in RxJS to skip the initial API call. However, despite my efforts, I have not been successful in achieving this.
const source = of('a', 'b', 'c', 'd', 'e');
const example = source.pipe(
tap(() => console.log('Service call triggered')), // My use of switchMap is meant to trigger the API call, while tap is simply for illustration purposes
skip(1)
);
const subscribe = example.subscribe((val) => console.log(val));
After running the above code snippet, I noticed that there are a total of 5 console logs generated. However, what I actually desire is to only see 4 console logs instead. Can anyone provide assistance with this issue?