I am trying to troubleshoot my code. I expect the subscription to trigger on .next() and on initilization.
But it triggers once the first time, then i navigate away and come back to the component and trigger the next and it fires twice. and i navigate away and return and it fires trice.
I have check all the function that call .next() and they are only triggered once but the subscription is still getting incremented.
My behaviorsubject is inside a service and when i click on a component it calls the next function inside the service.
any thoughts on where else i can check for the issue or how