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

Subscription killed and doesn't bepass cacheLimit - I have add .ready() to each subs with high cacheLimit #90

Open
Buom01 opened this issue Nov 27, 2016 · 0 comments

Comments

@Buom01
Copy link

Buom01 commented Nov 27, 2016

Hi,
to prevent unsubscribes due to (subs limit ?) or app freeze on a global instance of submanager, I transform my script from:

onCreated(function(){
  mySubs.subscribe('subcription');
});

to:

onCreated(function(){
  var self = this;
  self.autorun(function(){
    mySubs.subscribe('subcription').ready();
  });
});

Now if for unexpected reason my subscription is killed, it auto recreate it
So dont forget to inscrease cacheLimit else you will get anything like this: infinite resubscribe

I find useful to share this, because occasionally my subs was lost while they are displayed

@Buom01 Buom01 changed the title Subscription killed - I have add .ready() to each subs Subscription killed and doesn't bepass cacheLimit - I have add .ready() to each subs with high cacheLimit Nov 30, 2016
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

1 participant