I was curious what the list_of_assigns starting value is so I created a preload callback in the default LiveComponent that gets created when you use the generator to create a new LiveView (e.g., ExampleAppWeb.PostLive.FormComponent).
My understanding is that it is a list of maps.
I wasn’t successful in capturing the value for some reason. I stop the server and restarted it. Is there something else happening that prevents the preload callback to run the first time the form loads, like client-side caching.
Anyways if anyone knows what the starting list_of_assigns value is, I’d like to know. Thanks!
If I recall correctly, the LiveView templates that are generated by default don’t include multiple form LiveComponent of the same type. It might be worth trying to render more than one and see if that makes a difference.