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

Infintescroll and external data #439

Open
paulbarr opened this issue Jun 21, 2016 · 4 comments
Open

Infintescroll and external data #439

paulbarr opened this issue Jun 21, 2016 · 4 comments

Comments

@paulbarr
Copy link

Hey,
I got griddle going with external data using the sample wrapper that you provided.
However when I turn on infinite scroll it immediate goes and asks for all the pages and scrolls down to the very last one.
I have set the rowMetaData to use a key and this seems to add a 'key' column, but does not resolve my issue.
In your example of infinite scroll and external data you use the GriggleWithCallback instead of Griddle.
Two questions:
(1) Is it possible to use infinite scroll with external data, or does it require the use of GriddleWithCallback?
(2) Is there an example where I can look at your code for the GriddleWithCallback and infinite scroll? In Git I can only find the md page

@M3lkior
Copy link

M3lkior commented Jun 27, 2016

👍

@paulbarr
Copy link
Author

From my own investigation on this I came to the following conclusion:
You can use Griddle with infinite scroll if you amend the wrapper to handle it. Basically a very similar implementation to GriddleWithCallback.
I did this because GriddleWithCallback does not work with the version of React i am using

@ryanlanciaux
Copy link
Member

@paulbarr Would you be able to add a PR to griddle with callback?

@paulbarr
Copy link
Author

Someone else beat me to it
GriddleGriddle/GriddleWithCallback#8

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

3 participants