Hello there!
Im having a strange behavior, where I have a live view page, and a button that opens a modal. The modal contains a live_component.
When the modal is closed, mount on the liveview page is being called again, and in the console Im seeing the following:
phx-F1eqgq3XsI1TtBwB update: - {2: {…}, c: {…}}
palette.js:744 phx-F1eqgq3XsI1TtBwB destroyed: the child has been removed from the parent - undefined
palette.js:744 phx-F1eqgq3XsI1TtBwB destroyed: the child has been removed from the parent - undefined
palette.js:744 phx-F1eqgq3XsI1TtBwB mount: - {0: 1, 1: {…}, 2: {…}, c: {…}, s: Array(4), t: 'Teams'}
So Im not sure why the liveview page is being destroyed when the modal is closed.
Im using Phoenix 1.7.2
and liveview 0.18.18
Im not even sure how can I even debug this. I’ve tried using liveSocket.enableDebug();
but Im not getting any more information.
Any thoughts? Any way to debug this?
Thanks a lot!