Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix: add keys to createCtas elements#4362

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
jsjoeio merged 2 commits intomainfromjsjoeio/fix-createCtas
Oct 4, 2022
Merged

Conversation

jsjoeio
Copy link
Contributor

No description provided.

@jsjoeiojsjoeio requested a review froma team as acode ownerOctober 4, 2022 16:36
@jsjoeiojsjoeio requested review frompresleyp and removed request fora teamOctober 4, 2022 16:36
// REMARK: we don't have to worry about key order changing
// eslint-disable-next-line react/jsx-key
return [<CopyStackButton text={codeBlock.join("\r\n")} />, <ReloadAppButton />]
return [<CopyStackButton key="copy-stack-btn" text={codeBlock.join("\r\n")} />, <ReloadAppButton key="reload-app-btn" />]
Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

I know it says they won't change but I decided to add them because:

  • no negative impact adding them
  • good codebase hygiene to avoid usingeslint-disable

Plus, in some edge case if React does render them in a different order, it can tell the difference based onkey.

@jsjoeiojsjoeio self-assigned thisOct 4, 2022
@jsjoeio
Copy link
ContributorAuthor

Fixing formatting right now

@jsjoeiojsjoeioenabled auto-merge (squash)October 4, 2022 16:40
@jsjoeiojsjoeio merged commit78283cf intomainOct 4, 2022
@jsjoeiojsjoeio deleted the jsjoeio/fix-createCtas branchOctober 4, 2022 16:50
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@presleyppresleyppresleyp approved these changes

Assignees

@jsjoeiojsjoeio

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@jsjoeio@presleyp

[8]ページ先頭

©2009-2025 Movatter.jp