Phoenix beginner here with a LiveView question. I’ve got a form, and it uses the new <.form> function component, and it’s using form helpers to generate the inputs (text_input , etc).
What I’m seeing is that the diffs being sent down on change are large, they include basically the entire contents of the input tags, even though the only thing that is changing is the value. If I skip the form helpers and write out an <input> tag manually, and specify the value attribute, then the only thing sent over the wire is the updated value.
Is that behavior to be expected in the former case? I thought these two cases should have the same representation over the wire.
And similarly, the form component function is injecting a hidden CSRF input, and the value of the CSRF token changes on every form change event. I would have thought that would have smartly been ignored from dom updates. I’m just trying to gauge if I’m doing something wrong, or if these are known and expected behaviors. It seems like if phoenix doesn’t do change tracking on form helpers, I should be writing them by hand in heex. Mainly because I’m using Tailwind and so the difference in size for sending the whole input down (massive class list and all) is significantly different than just sending down the updated value.