I have a pretty complex page set up as follows:
Index (LiveView) -> Modal (LiveView) -> a few LiveComponents
This is the ideal structure as the LiveComponents need to update the modal state (with
send self()) and once the modal completes, it sends a message to the parent Index view (with
The problem is that there is no way for the parent Index view to communicate with the child Modal, i.e. to open it. In other words, there is no way to know the pid of children live views, as this would simply solved by sending a message to the Modal process.
Is this a planned feature? How do we communicate from a parent to a child LiveView?
Note: I can make this work by making the Modal into a LiveComponent itself, but then the data flow becomes much more complex, as down the tree the inner components need to use
send_update to update the Modal state, whereas having the Modal as a liveview makes the communication flow simpler to follow by using normal messaging.