You need to understand that queries are a composition from root of your data graph. The only way a component receives data is one of the following: 1. It is well-connected in the data graph 2. You use “floating roots” 3. The component is well-connected AND it uses a link query Components that are not floating roots cannot query for arbitrary data and just expect to get it. I’m working on explaining this in gory detail in the new Grokking Fulcro video series, but it is well-covered in the book
Ah-ha! After realizing that a floating root was not what I wanted and it was my intention to have this data well connected, I realized that I needed to create some sort of relationship between an account and the link to that account pointing to the same ident. Once I did that, it's working the way I want.
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.
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.