Fork me on GitHub
#fulcro
<
2021-02-15
>
stuartrexking06:02:00

I want to mark some form fields to always be complete. Do I mark them complete in componentDidMount, or do I mark the entire form complete on submit and do my submit logic alongside the mark-complete! in a pessimistic transaction?

stuartrexking06:02:35

Or do I just remove fields from the form that don’t need to be completed and validated against at all.

stuartrexking06:02:36

I’m leaning towards just marking the fields complete that are always complete (like a checkbox) on componentDidMount.

Jakub Holý (HolyJak)14:02:45

I guess u could also simply change the data directly when you add fs config to it, ie. in pre-merge or a mutation, whatever you use to load it.

stuartrexking23:02:32

This is what I went for. I clear my form on load and set the field to completed.