Closed imike57 closed 5 years ago
I have the same issue. Any suggestion? Thanks
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This issue has been closed due to continued inactivity. Thank you for your understanding. If you believe this to be in error, please contact one of the code owners, listed in the CODEOWNERS
file at the top-level of this repository.
Hi,
I encounter some problem with the use of the change-stream API, the data is loaded but not after several access to the page that performs the requests.
Description
I make requests and subscribe to two collections:
I unsubscibe to theses subscription while onDestroy();
I got my content during the first page loading. Everything is well loaded.
Then I just change of page to "Products" and back to "Categories" page. (Products page is empty for now)
It still work well...
But if I did it 2 times more, it no more working...
The request is still pending
No error in the console during some seconds or minutes sometime then :
I'm sure it's related to the createchangestream because if I remove these subscription it work well, but I need it to update some content in realtime..
I subscribe to the change subscription only when my main category subscription is ready. So it seems that it is the subscription to the changes of the previous step that cause issue. However, I am unsubscribing to this subscription to the event onDestroy (), so should not I be killed? Yet it seem still there
Expected result
Be able to make connections correctly at any time after a page change when subscriptions to changestream have been previously made.
Additional information
I use loopback 3.x
SDK builder https://github.com/mean-expert-official/loopback-sdk-builder Angular 6