We want to know why livecomponent mount/1 socket is empty. Shouldn’t be the same socket passed through when invoking it from liveview parent?
We’d like to use livecomponent mount to assign initial component state, but we need some info like current user_id.
We thought that info would be available on socket but it is empty.
We could move the logic to the preload or update methods, but then, the functions will be called in each update instead of being called only at the beginning.
So, what is the purpose of livecomponent mount if you can’t access to any contextual data?