The implementation of LiveHelpers.link/1 for the :navigate case was using data attributes (data-phx-link and data-phx-link-state) that are internal to the implementation of LiveView's live navigation.
This change refactors link/1 to use the public LiveView.Helpers.live_redirect/2 to achieve the same behavior.
The implementation of
LiveHelpers.link/1
for the:navigate
case was using data attributes (data-phx-link
anddata-phx-link-state
) that are internal to the implementation of LiveView's live navigation.This change refactors
link/1
to use the publicLiveView.Helpers.live_redirect/2
to achieve the same behavior.