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

fix(theme-classic): add key prop for SimpleLinks map #6515

Merged
merged 1 commit into from
Jan 31, 2022

Conversation

kgajera
Copy link
Contributor

@kgajera kgajera commented Jan 30, 2022

Motivation

Fixes #6509

Have you read the Contributing Guidelines on pull requests?

Yes

Test Plan

Confirmed console error does not occur anymore

@facebook-github-bot facebook-github-bot added the CLA Signed Signed Facebook CLA label Jan 30, 2022
@netlify
Copy link

netlify bot commented Jan 30, 2022

✔️ [V2]
Built without sensitive environment variables

🔨 Explore the source changes: 68fb648

🔍 Inspect the deploy log: https://app.netlify.com/sites/docusaurus-2/deploys/61f6c00dbe75680008cfbf3f

😎 Browse the preview: https://deploy-preview-6515--docusaurus-2.netlify.app

@github-actions
Copy link

⚡️ Lighthouse report for the changes in this PR:

Category Score
🟠 Performance 70
🟢 Accessibility 100
🟢 Best practices 93
🟢 SEO 100
🟢 PWA 92

Lighthouse ran on https://deploy-preview-6515--docusaurus-2.netlify.app/

Copy link
Collaborator

@Josh-Cena Josh-Cena left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@Josh-Cena Josh-Cena added the pr: bug fix This PR fixes a bug in a past release. label Jan 31, 2022
@Josh-Cena Josh-Cena merged commit b8ccb86 into facebook:main Jan 31, 2022
@@ -106,10 +106,9 @@ function SimpleLinks({links}: {links: SimpleFooter['links']}) {
return (
<div className="footer__links">
{links.map((item, key) => (
<>
<React.Fragment key={key}>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interestingly, this rule is disabled in airbnb because of "false positives". I think we can enable some React rules ourselves

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

honnestly I never liked eslint airbnb, and many people have the same feeling

In the long term we should remove it imho

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like it as a solution that just works... We aren't tied to it (while many others are forced to have a style guide and stick to it) so we can tweak it however we want

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed Signed Facebook CLA pr: bug fix This PR fixes a bug in a past release.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SimpleLinks component missing unique "key" prop error
4 participants