Skip to content
This repository has been archived by the owner on Apr 21, 2020. It is now read-only.

Add PagedWebData to the items [6h] #76

Open
amitaibu opened this issue Mar 21, 2017 · 1 comment
Open

Add PagedWebData to the items [6h] #76

amitaibu opened this issue Mar 21, 2017 · 1 comment
Assignees

Comments

@amitaibu
Copy link
Member

Currently we have very few items, but we could add more, and then fetch all the items one page at a time

/cc @rohanorton

@amitaibu
Copy link
Member Author

@rgrempel gave some explanation about this:

Now, PagedWebData would be a little like our friend WebData from RemoteData, except that it would have another state, in which some pages have been received but others have not. To create one, you'd supply an Http.Builder that's partly filled out (i.e. everything but the page parameter), so that PagedWebData itself can send additional requests to get additional data. (So, it would be hooked into the event handling). And the UI can then do the right thing to display things ... i.e. display a "loading" indicator until all data loaded, or display what data we have + a loading indicator, or whatever is the right thing for the situation. Now, there would be a few more things to deal with, but the basic idea would be to have a PagedWebData module that would abstract out the work of sending requests and managing the pages and the count.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants