When I console.log my subscribe from my Behaviour Subject, it returns more than one console.log and I cannot understand why because I am doing only one next() call. I do have others method calling next() along the application, but I am not listening to them. I am using http requests with Behaviour Subject and sometimes when it happens my application is doing two or more http requests when should be done just one.
my code:
onGetDocs = () => {
// My console.log() is showing up twice or more... Whyyy? right below my console is my GET function making it be called also twice or more.
this.documents_filters_dialog.docsFilters.subscribe(docsFilters => {
console.log('docsFilters: ', docsFilters)
}