You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But that no longer seems to work with a fresh Phoenix install on the current version:
** (UndefinedFunctionError) function Routes.live_path/3 is undefined (module Routes is not available)
The push_patch documentation also doesn't help, as it has no examples of using a helper to lookup the route for the current page/liveview module. All the examples are hardcoded, like "/" or "/my_live_view"
What is the correct way to push_patch or push_navigate to the SAME current page I'm on. How do I get that path, and is it possible to update the doc with such an example?
In particular, can we clarify or correct the live/4 documentation to better explain it's "By default, you can generate a route to this LiveView by using the live_path helper" bit? I can find no such "live_path" helper
The text was updated successfully, but these errors were encountered:
In the past, if I wanted to change the url params while staying on the same liveview page, we would do:
The Phoenix.LiveView.Router documentation still seems to want us to do that
But that no longer seems to work with a fresh Phoenix install on the current version:
The push_patch documentation also doesn't help, as it has no examples of using a helper to lookup the route for the current page/liveview module. All the examples are hardcoded, like "/" or "/my_live_view"
What is the correct way to push_patch or push_navigate to the SAME current page I'm on. How do I get that path, and is it possible to update the doc with such an example?
In particular, can we clarify or correct the live/4 documentation to better explain it's "By default, you can generate a route to this LiveView by using the live_path helper" bit? I can find no such "live_path" helper
The text was updated successfully, but these errors were encountered: