-
Notifications
You must be signed in to change notification settings - Fork 13
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
question: proper usage of .inputs_for #362
Comments
|
Alrighty, took some notes around the code and I think it can be done and simplify things - but I'm too tired to do it today 😅 Most importantly:
that all said, the last times I did this (long time ago in both Phoenix and Rails) it was a constant source of bugs and frustrations. There, I often just ended up handling the data myself at it was easier. That said, our example is fairly small/simple and relatively close to the one displayed so it may just work and remove some duplication. |
I have some stuff up on |
Code for this is on #466 but ran into a limitation of ecto with keeping constraints around that is less trivial to fix than I assumed. I'm still working a bit on that in my personal time but need to get back to the ecto team. |
Further Notes
Please see the documentation at: https://hexdocs.pm/phoenix_live_view/Phoenix.Component.html#inputs_for/1
In the current code in the admin/edit live_view there is a lot of custom code how to delete the labels. I am not sure we are using the best practice here.
See from the docs this example
The text was updated successfully, but these errors were encountered: