My router:
live "/cities/:id/users", CityLive
I tried the handle_params function but it was never called:
def handle_params(%{"id" => id}, _uri, socket) do
# some code
end
I tried to follow the practice in the chrismccord/phoenix_live_view_example project and still failed (session is always %{}):
def mount(%{path_params: %{"id" => id}}, socket) do
# some code
end
Can see the parameters from the log:

Can anyone tell me what is missing?






















