Closed vaibhav-xp closed 1 year ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
project-amupedia | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Jul 13, 2023 10:05am |
Thank you, @vaibhav-xt, for creating this pull request and contributing to GitHub-ReadMe! 💗
Our review team will thoroughly review the pull request and will reach out to you soon! 😇 Please make sure you have marked all the completed tasks as done. ✅ We appreciate your patience and contribution! 😀
@vaibhav-xt Thanks a lot for this PR. But currently what happens is that you can search a user only on a single page. For Example, If user is on 2nd page then you cannot return it from the first page. We would want this to be searched across all the pages.
@vaibhav-xt Thanks a lot for this PR. But currently what happens is that you can search a user only on a single page. For Example, If the user is on the 2nd page then you cannot return it from the first page. We would want this to be searched across all the pages.
Right, but then I have to give per_page= 100 to fetch all users. Should I remove all the pagination systems? Then it becomes easy to list down.
@vaibhav-xt I am afraid that being a good solution. I would suggest that you create another function where there is no per page attribute and it returns all the list of contributors. Then store them in state variable just like contributors
so maybe call it allContributors
. Now for your filtering if someone searches then apply the filter on allContributors and make it conditional call if the input field is empty it calls what we have right now with per page i.e contributors
array state variable. And if it is not empty which basically means a user is calling a query, Then return it from allContributors
.
Let me know your thoughts on this.
Oh, I was working on this idea and now it's fixed and working great.
@vaibhav-xt Pretty Awesome. Thanks a lot for this feature. 💯
Description
The search bar is working correctly.
Please provide a brief description of the changes introduced in this pull request. Explain the problem you are solving or the feature you are adding.
Pull Request Checklist
Please make sure that your PR meets the following requirements:
Checklist
Please check all applicable boxes and provide any additional information if needed.
Screenshots - If Any (Optional)
Please provide any additional information or context that may be helpful for reviewing the pull request.
Related Issues
issue #468
Please list any related issues or pull requests that are associated with this pull request.
Reviewers
Please tag the relevant team members or reviewers who should review this pull request.