kadirahq/subs-manager

How to clear all template-level subscriptions from 'onLogin' callback

madshargreave opened this issue · 1 comments

Hi

I have a React component in which I make multiple subscriptions and cache them on the client. Problem is that if I log in to another user, the same subscription is still cached, resulting in the wrong data being shown.

I want to do something like SubsManager.clearAll, because I dont have access to the new SubsManager() reference in the callback.

Is this possible?

Try to add a reference to it. We normally define subsmanager instances on the global namespace.