We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
when the entered user has no public repos, the following error is printed:
Cannot read properties of undefined (reading 'name')
i fixed RepoMenu.js with the following code. if you know better way to destructure the array, please suggest.
const [repo, previous, next] = useIterator({ items: repos }); const name = repo?.name;
also notice, you need to pass useIterator({ items: repos }) instead of useIterator(repos) (useIterator receives a prop named items).
useIterator({ items: repos })
useIterator(repos)
useIterator
items
The text was updated successfully, but these errors were encountered:
No branches or pull requests
when the entered user has no public repos, the following error is printed:
i fixed RepoMenu.js with the following code. if you know better way to destructure the array, please suggest.
also notice, you need to pass
useIterator({ items: repos })
instead ofuseIterator(repos)
(useIterator
receives a prop nameditems
).The text was updated successfully, but these errors were encountered: