Access array key in override component

default discord avatar
superwafflepuffs
last month

Currently trying to add a custom UI component to a field of an array and was expecting useField to return the array item, but it returns the entire top level form. Is there some way to know which iteration of the array i'm in?



nvm path works. I had tried path before and it wasn't working I thought.

    Open the post
    Continue the discussion in Discord
    Like what we're doing?
    Star us on GitHub!

    Star

    Connect with the Payload Community on Discord

    Discord

    online

    Can't find what you're looking for?

    Get help straight from the Payload team with an Enterprise License.