uniforms
uniforms copied to clipboard
Unclear documentation on custom fields
Hi,
I'm not sure how to understand CustomAutoField
here: https://uniforms.tools/docs/examples-custom-fields/#customautofield
There are mentioned two ways. I understand, that using the AutoField.componentDetectorContext is one of them. But what is second one? is it the deprecated version <AutoForm {...props} autoField={CustomAutoField} />;
?
Because docs says that there are two standard ways, but deprecated way should not be considered standard (I think).
And if the "context" way is preffered one, it could be shown in the example directly.
Thanks for clarification
Hi @mariusrak. I do agree, that the deprecated way should not be considered a standard one. We'll update the documentation accordingly.