From the docs:
Components are defined by using
Phoenix.LiveComponentand are used by callingPhoenix.LiveView.Helpers.live_component/3in a parent LiveView. Components run inside the LiveView process but have their own life-cycle.
It seems like you’re trying to call the LiveComponent outside of a LiveView, which doesn’t work because the LC doesn’t spawn up its own process, but instead requires a parent LV process to run inside.
For this case, perhaps a function component would be an acceptable alternative?


















