Simplify your stack and build anything. Or everything.
Build tomorrow’s web with a modern solution you truly own.
Code-based nature means you can build on top of it to power anything.
It’s time to take back your content infrastructure.

Custom collection views.Edit component

default discord avatar
inaztmlast year

In the documentation, you give an example of views.List customization, but how to get access to the data in the views.Edit custom component?


It seems that the useField


const { value: title } = useField({ path: 'title' })

and useAllFormFields


const data = useAllFormFields()

hooks do not return field data.


Return always undefined value.



Solved, need wait when isLoading === false and data return title field

    Star on GitHub

    Star

    Chat on Discord

    Discord

    online

    Can't find what you're looking for?

    Get dedicated engineering support directly from the Payload team.