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

Subscriptions ready #40

Closed
yogiben opened this issue Mar 24, 2016 · 3 comments
Closed

Subscriptions ready #40

yogiben opened this issue Mar 24, 2016 · 3 comments

Comments

@yogiben
Copy link

yogiben commented Mar 24, 2016

Has there been any attempt to listen to whether the sub is ready for this kind of use case:

isReady ? <TodosList todos={todos] /> : <Loading />

This would be a lovely addition to 1.0 #33

@Mokto
Copy link
Contributor

Mokto commented Mar 24, 2016

Yes I will add this soon ;)

Thanks.

@Mokto
Copy link
Contributor

Mokto commented Mar 30, 2016

Sorry I have no time to do this right now. Maybe next week.

PRs are welcome ! ;)

@Mokto
Copy link
Contributor

Mokto commented Mar 31, 2016

@yogiben Actually I took the time to to what you asked.

It is available in 1.0.0-beta25.

getMeteorData() {
    const handle = Meteor.subscribe('todos');

    return {
      todosReady: handle.ready()
    };
  }

@Mokto Mokto closed this as completed Mar 31, 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

2 participants