Is there anyway to access the index of a field inside of an array in V3? #7017
Closed
alruban
started this conversation in
Feature Requests & Ideas
Replies: 1 comment
-
Figured it out, I need to use useFieldProps to get the index. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
In V2 when I had a custom component field inside of an array of fields, the field's path would return the field's index inside of a string like node.1.position, which was relative to it's placement inside of the array. It basically allowed me to interact with other fields inside of the array because I could reference the index of the current field that was being interacted with, with V3 that index is no longer returned - it just gives me node.position, and I can't seem to find any alternative to returning that index. Is there a new method to achieve this, or..
Beta Was this translation helpful? Give feedback.
All reactions