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

Go back to content-driven slice keys in feeds #2190

Merged
merged 2 commits into from
Dec 12, 2023
Merged

Go back to content-driven slice keys in feeds #2190

merged 2 commits into from
Dec 12, 2023

Conversation

pfrazee
Copy link
Collaborator

@pfrazee pfrazee commented Dec 12, 2023

Keys were changed to be auto-numbered in an attempt to ensure we never hit duplicate react keys. That approach unfortunately hurt performance and led to state corruption as react would reuse state across components that have the same key.

The change was done out of an abundance of caution. I'm still not 100% sure we never duplicate react keys but I wasnt able to trigger it, whereas the state corruption is happening a lot, so this is the move.

@pfrazee pfrazee merged commit 870505c into main Dec 12, 2023
4 checks passed
@pfrazee pfrazee deleted the react-key-fixes branch December 12, 2023 21:07
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.

2 participants