For DeadView submitted forms, there’s the scrub_params/2 function we all know and love Didn’t find anything of an equivalent for LiveView though. Why? Didn’t look hard enough? Not needed because [very valid reason]? Or still something else?
Ecto.Changeset can deal with empty input (see
:empty_values option on
cast/4) just fine. No need to scrub them before.
I see. And what makes it so different in “DeadView” then? Or is the function basically an artefact these days?
I don’t think there’s a difference, but people have imo leaned much more heavily on ecto when using LV and this might just be the result of nobody having asked for it.
My somewhat less-phoenix-trained eye couldn’t find anything really differentiating either, hence the curiosity and question. Thank you, Benjamin.