How to do an eagerly connecting for a phantom wallet

Hi all,

I am trying to associate a phantom wallet to stake cryptocurrencies. The problem is that I don’t know how to do an eagerly connecting in elixir Liveview, in the official Phantom documentation they use the useEffect of react to do it.

Is there any way to implement this connection in a hook with liveview?

Thanks a lot.