Fork me on GitHub

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?


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


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.


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