I have the following function component:
# dashboard_live.ex
def user entry(assigns) do
~H"""
...
<.link patch={Routes.dash_path(@socket, :show_user, @user.id)}>
Username
</.link>
...
"""
end
The problem is that @socket is not passed to components it seems, so usual link generation doesn’t work. How would one go about generating links with function components?