-
-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
remove dependency on phoenix_html_helpers #299
Comments
In the documentation there is still mentioning of The first one might be replaced with a regular heex render, like this: defmodule FlopHelpers do
use MyAppWeb, :html
def table_opts do
assigns = %{}
[
no_results_content: ~H"""
<p>no results found</p>
"""
]
end
end For the second use, I don't have a better alternative than using |
Replacing |
It would probably make sense to add an
Since |
That's a great insight. Thanks for taking the initiative upstream! That will allow a cleaner interface, more idiomatic in line with the new Phoenix Components. Very nice! |
Yes, some flop_phoenix tests start failing when I switch to the |
I have been looking into this further and it looks like the issue stems with these changes: phoenixframework/phoenix_live_view@1e169b8 This adds the concept of a I believe the way to address this is to set the I'm happy to put up a PR to demonstrate, even if it ends up not being the right solution. Hopefully this can help your investigation as well. |
@jelkand That is very helpful, thanks for looking into this! I didn't have a closer look yet, but I'd like to understand better what the purpose of the |
I agree, and adding a |
This change was included in LiveView 1.0.0-rc.8: phoenixframework/phoenix_live_view@0d4f0ca. I didn't have a closer look at whether this changes anything yet. |
#298 updated phoenix_html to 4.0 and updated the calls to functions that were moved to phoenix_html_helpers. In the long run, the dependency on those functions should be removed completely.
The text was updated successfully, but these errors were encountered: