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

If there are no subscriptions, then ready() is always false #84

Open
Bandit opened this issue Aug 18, 2016 · 0 comments
Open

If there are no subscriptions, then ready() is always false #84

Bandit opened this issue Aug 18, 2016 · 0 comments

Comments

@Bandit
Copy link

Bandit commented Aug 18, 2016

My subscriptions are inside a conditional statement, and there are edge cases where no subscriptions are needed. In this case ready() remains false forever.

ready() should return true if there are no subscriptions, and only be set to false while fetching a subscription?

Alternatively let's add a count() so we can call subs.ready() || subs.count() === 0

@Bandit Bandit changed the title If there are no subs, then subs.ready() is always false If there are no subscriptions, then ready() is always false Aug 18, 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