Closed ErikDakoda closed 3 years ago
I would like someone (@eric-burel) to quickly review this, primarily because I am changing SmartForm.initField()
to change field.document
from the initial document to the current document. I believe this is a bug, but it's possible that some users of the code are expecting field.document
to contain the initial document.
SmartForm.initField()
set each field'sdocument
property to the initial document, instead of the current document, resulting in bugs like Nested Schema document update not workingFormComponent.getDerivedStateFromProps()
would fail whenintlOrRegularValue
was null (becausetypeof null === 'object'
); it's possible that this should not normally occur, but it has occurred in my codebase because of Invariant Violation errors thrown by Apollo, likely because we have not upgraded to Apollo Client 3 cachemeta
prop was missing)getString()
inintl.js
would fail if the defaultMessage passed was not a string