I was wondering if there is a proper way to stop client's subscriptions.
For example, i have 2 pages, on the first i subscribe the client to users
publication, and on the second i subscribe to projects
publication.
When the client goes from users page to the projects page, he is still subscribed to the users, although he does not need it on projects page.
So my first question is: Does it take memory or CPU? When the client is subscribing to more and more publications, when he goes from route to route.
And the second: What is the proper way to unsubscribe?? For example when he goes to projects page, unsubscribe from the users publication.
Some packages i see does that. For example reactive-table
.
Thank you in advance!