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

[React] Network-aware data-fetching #7

Closed
addyosmani opened this issue Jul 11, 2019 · 2 comments
Closed

[React] Network-aware data-fetching #7

addyosmani opened this issue Jul 11, 2019 · 2 comments

Comments

@addyosmani
Copy link
Collaborator

addyosmani commented Jul 11, 2019

Some sites are experimenting with fetching more (or less) results from an API depending on the quality of the user's network connection.

It would be great if we had a demo highlighting how to do this with React. Perhaps create-react-app fetching search results from a server?. e.g

4G: 50 results
3G: 15 results
2G: 5 results

@addyosmani
Copy link
Collaborator Author

We've previously used the iFixit API in a few projects and it does support setting limits (up to 200 items returned): https://www.ifixit.com/api/2.0/doc/Search

@addyosmani
Copy link
Collaborator Author

Closed by #11

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