Hey everyone,
I want to get the lv request URL in :on_mount and Iām facing some issues.
Does anyone have any ideas?
Thanks! ![]()
Hey everyone,
I want to get the lv request URL in :on_mount and Iām facing some issues.
Does anyone have any ideas?
Thanks! ![]()
The URL is available in the handle_params callback that is invoked after mount: Phoenix.LiveView ā Phoenix LiveView v0.17.9
Thanks a lot.
Using on_mount, you can attach_hook to the handle_params lifecycle callback and do your url handling there