I am starting to heavily use local minimongo collection
LocalItems = new Meteor.Collection null
SomeOtherItems = new Meteor.Collection null
and i'd like to be able to empty all of these local collections when a user logs out; any suggestions?
I am starting to heavily use local minimongo collection
LocalItems = new Meteor.Collection null
SomeOtherItems = new Meteor.Collection null
and i'd like to be able to empty all of these local collections when a user logs out; any suggestions?
Copyright © 2021 Jogjafile Inc.
Try this, I assume from your code that you're using coffeescript. If not, let me know and I will rewrite it as javascript:
If you're using accounts-ui and don't call the
logout
function directly, I think you'll need to do something like this:Or you could do this: