I have recently started with RxJS but have not been able to find information with regards to the following:
When scanning an Observable every subscription adds a new iteration to the scanning operation.
It looks like a bug or a bad implementation of the code.
The below link demonstrates this:
https://codesandbox.io/s/fancy-bird-0m81p
I have 3 subscriptions, which means 3 extra loops on the scan function.
Comment out a subscription and see the change in the console window.
Is this expected, is it a bug or is it bad implementation?
If it is expected please link to an explanation if possible. Also is it possible to stop this from happening?
Thanks ahead!