Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
madshargreave opened this issue Sep 8, 2015 · 1 comment

Comments

@madshargreave
Copy link

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?

@arunoda
Copy link
Contributor

arunoda commented Sep 8, 2015

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants