I have a live component that keeps getting destroyed after I get the result of an asyn_assign call. This live component has almost nothing to do with the async_result data but for some reason as soon as loading is complete it disappears from the screen. Checking the network tab I see a cids_will_destroy
event is sent for that element. I was trying to understand why and when LiveView would send that event.
Some side notes
- This component has no visibility toggling
- It only occurs when bundling the app for prod. We can not reproduce it on our local machines.