Skip to content

Conversation

@jeffcole
Copy link

@jeffcole jeffcole commented Apr 8, 2022

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` 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant