Software Engineer currently working with Elixir.

Phoenix Liveview Forms Without Changeset

The standard way to create LiveView forms is to use the to_form/1 helper by passing it a changeset structure, for example: to_form(Accounts.change_user(%User{}))) However, situations can arise where we have a form without having to back it up with a changeset. Why skip the changeset? Ecto.Changeset is a tool for working with information from various sources. It provides validations, castings, and error handling. Typically, we create forms based on an Ecto schema, meaning they have a table in our database....

August 30, 2023 ยท Me