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

What Should the Format of the Data Be #2

Open
maitrid opened this issue Apr 29, 2017 · 2 comments
Open

What Should the Format of the Data Be #2

maitrid opened this issue Apr 29, 2017 · 2 comments

Comments

@maitrid
Copy link

maitrid commented Apr 29, 2017

This is more like a question than an issue. But it would be great if you indicate what the format of data it would be inside the getMore method. Usually, subscribe is used in createContainer method and it sets the value of a prop in the class. In the README, it's not clear how it can be used.

@mohithg
Copy link
Owner

mohithg commented Apr 29, 2017

@maitrid Thanks for your interest in this component. The getMore method should make the subscription call again to get more data, eg: someSubscription({next: 10}) which indicates to get next 10 sets of data. Now after your subscription the data comes to local mongo and it is passed as props to the component and the component renders again showing your new set of data. Hope this answers your question. Let me know if you still need help.

@maitrid
Copy link
Author

maitrid commented Sep 19, 2017

Thank you so much, @mohithg! Sorry i lost track of this. Will try again!

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