Can someone please suggest a good resource for implementing forms for nested types, like for my Basics:
export type Basics = {
name?: string;
location?: Location;
profiles?: Profile[];
};
I have, after many lessons, got some forms working using useActionState and zod-form-data for flat types and I'd like to extend that to nested ones. Gemini has been giving me a bit of a run around for a while, and other guides I've found seem to skirt the issue a bit. My first thought was, why nest vs. just using one form for each type, but having to handle updates to e.g. Location on it's own, then update Basics seems just wrong.