fix: use field.id as React key for env var rows by Felipeness · Pull Request #5262 · unkeyed/unkey
The useFieldArray docs specify that field.id (not index) should be used as the component key. Including the index causes React to unmount/remount subsequent rows when one is deleted, which destroys local state (like the password visibility toggle) and causes unnecessary re-renders.
Accept upstream's virtualized env vars implementation which already uses field.id as React key on the wrapper div.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters