Comments (3)
Self-assigning myself for this issue.
A good quick way to fix this would be adding a button for more, which is rendered only when the user's user.public_repos > page_number * 100
.
Here, page_number
, initially 1
is the current page number.
A simple fetch request can be made, and the data can be appended to the repos
state.
from gitzilla.
Self-assigning myself for this issue.
A good quick way to fix this would be adding a button for more, which is rendered only when the user's
user.public_repos > page_number * 100
.Here,
page_number
, initially1
is the current page number.A simple fetch request can be made, and the data can be appended to the
repos
state.
Glad to see your suggestion but I already started working on this issue. It will be fixed soon.
Thank you! 😄
from gitzilla.
Hi Max,
I knew about this (from the GitHub documentation) when I started working on GitZilla.
But I took it lightly as I didn't know GitZilla will get such an amazing response from the dev community.
Also, another reason is fetching all the repositories at a time will increase the loading time which will not result in good user experience. Hence I thought to just limit to single page.
This is my current code in src/components/User.jsx
-
Thanks for finding out this issue and reminding me again and giving an example.
I will look into it and fix this very soon.
I am thinking of something like fetching 100 repositories first and show them first and then fetching more as the user scrolls down. This will decrease the loading time.
But I am not very sure. As I don't know much about pagination and fetching. I am a beginner in react and working with API too.
Please suggest your views on this.
Thank you.
from gitzilla.
Related Issues (14)
- Location is rendered even when it is not present HOT 1
- Improvements in the repo section HOT 1
- `No wrap` to links HOT 4
- GitHub profile readme integration
- feature: Extra info on repo cards HOT 4
- Lack of Linting and Style Guide
- The repo card is not showing all languages HOT 16
- Gitzilla Redirecting Github pages to Netlify HOT 1
- Add sorting options for the repositories
- Adding repository types: All and others (Sources, forked, owned, archived, mirrored) HOT 3
- Add a screenshot of the project to the README HOT 3
- If no skill is found for a particular user, the animation is being endless. HOT 1
- Adding username when name is not present HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gitzilla.