I've been playing around with the library and liking it very much so far. I was surprised that to docs use the array index as key. See https://tanstack.com/form/latest/docs/guides/basic-concepts#array-fields I wanted to to add a drag-and-drop reordering to my array fields but without a stable identifier it's almost impossible. So here are my questions:
- Is there an undocumented stable field identifier? - If not, are there plans to add one?
I can also solve this problem outside of the library by making the
key
key
part of the form value. Though I think handling this within the library would be great.
This page introduces the basic concepts and terminology used in the @tanstack/react-form library. Familiarizing yourself with these concepts will help you better understand and work with the library.