I have service which connects with Subject()
to do paging. I'm using next(newData)
to pass to subject, which keeps things alive, now I need to use complete()
on each ajax call and pass it to subject. but after doing one complete()
I'm started get error.
I wanted to know, can we still pass Subject
observables still next(newData)
if once completed()
is already been triggered?
There is some information on subjects from a former question on stack overflow : here. I encourage you to review it.
About your specific question, subjects once completed cannot emit any longer. This is part of the contract they abide by. Depending on the logic and flow of your application, you might: