You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@argupta23 this is a common behaviour when working with RxJs observables. It shouldn't be added to docs because is not exclusive to the menu service nor the nebular library.
Many observables needs to be unsubscribed at the end of component lifecycle using ngOnDestroy. See this big thread at stackoverflow.
There is also some libs to unsubscribe from observables without needing ngOnDestroy. Take a look at ngx-auto-unsubscribe and until-destroy.
Issue type
I'm submitting a ... (check one with "x")
Issue description
Context Menu subscription stays around even after you leave page and comeback
Current behavior:
I have looked at the Context Menu example within the documentation and also seen #695 #724
Expected behavior:
Subscription should be canceled when leaving page.
Steps to reproduce:
Create a component with the below code
Related code:
dev.component.ts
xxx.component.html
Other information:
node v12.x
angular 10.1.3
nebular 6.2.0
Is it a bug ? Someone could tell me how can I solve ?
The text was updated successfully, but these errors were encountered: