How do I provide a custom value for form fields?

I've got an application where the create and edit forms for an App don't actually include any fields that exist on that model. The App model represents a third-party application for a larger system, and when modifying it you're actually modifying an AppVersion of draft type. This isn't an issue when creating, because the custom logic behind the creation handles that, but when it comes to editing, the fields have no values because it doesn't know where to get them from. I want to provide custom logic, in the same way I would a table, but I can't figure it out from the code, nor find it in the documentation.
1 Reply
ollieread
olliereadOP7d ago
Looks like I found the answer, I have to use afterStateHydrated()

Did you find this page helpful?