LiveView Pattern: Breaking down a complex form into multiple components

Hi All.

I’ve a complex LiveView form which I think I could break down into multiple components where each component is actually its own form. The parent LiveView would then be responsible for marshalling the data when the user hits submit. Has anyone tried this particular pattern and if so do you have any pointers on how best to implement this?

I know the document talks about sharing data between a parent and child component but the example in the document is quite simple.

cheers

Dave

2 Likes

Something like Phoenix LiveView: Multi-step forms · Bernheisel?

Thanks @BartOtten - I came across this article recently as well and I’m currently seeing how I can use it as a basis for my approach. Wish me luck :-).

cheers

Dave