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

refactor: fix react keys where able to #19

Merged
merged 1 commit into from Jun 24, 2022
Merged

refactor: fix react keys where able to #19

merged 1 commit into from Jun 24, 2022

Conversation

Beta-Folf
Copy link
Contributor

Description

  • Cleanup React keys where the data that was being mapped over provided a unique value to use as the key
  • You want to avoid using the index of the array for performance reasons because when something is added or removed to a list the index changes, causing React to think everything in the list needs to be rerendered. With large lists this can cause a performance issue
  • https://reactjs.org/docs/lists-and-keys.html

@vercel
Copy link

vercel bot commented Jun 24, 2022

@Beta-Folf is attempting to deploy a commit to the MyFursona Team on Vercel.

A member of the Team first needs to authorize it.

@vercel
Copy link

vercel bot commented Jun 24, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
my-fursona ❌ Failed (Inspect) Jun 24, 2022 at 1:17AM (UTC)

@VulpoTheDev VulpoTheDev merged commit e8d3470 into MyArtverse-Project:main Jun 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants