Skip to content
This repository has been archived by the owner on Jan 10, 2025. It is now read-only.

✨ [react-form-state] support custom keys for list #387

Merged
merged 4 commits into from
Oct 29, 2018

Conversation

marutypes
Copy link
Contributor

closes #334

This Pr adds the ability customize <FormState.List />'s logic for assigning keys to it's iterations. This makes the component usable for drag-and-drop lists and other contexts where the contents might be re-ordered.

@marutypes marutypes changed the title ✨ support custom keys for list ✨ [react-form-state] support custom keys for list Oct 26, 2018
Copy link
Contributor

@iainmcampbell iainmcampbell left a comment

Choose a reason for hiding this comment

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

love it!!!

@marutypes marutypes force-pushed the formstate-list-custom-keys branch from 81b3359 to 16b451f Compare October 29, 2018 20:08
@marutypes marutypes merged commit c430d22 into master Oct 29, 2018
@marutypes marutypes deleted the formstate-list-custom-keys branch October 29, 2018 20:29
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[react-form-state] FormState.List uses key={index}
2 participants