Skip to content

feat(mutliplewmseditor.tsx): add stable list keys for wms editor entities #55

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

Merged
merged 1 commit into from
Nov 9, 2024

Conversation

felix-mu
Copy link
Owner

@felix-mu felix-mu commented Nov 9, 2024

As stated in the React docs it is considered bad practice to use generate UUIDs on the fly for list keys. That is, why a useRef hook is used to map between the stable array index of the wms editors and an uuid.

@felix-mu felix-mu merged commit 06d82c2 into main Nov 9, 2024
6 of 8 checks passed
@felix-mu felix-mu deleted the stable-wms-list-keys branch November 9, 2024 21:34
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.

1 participant