uniforms icon indicating copy to clipboard operation
uniforms copied to clipboard

Unclear documentation on custom fields

Open mariusrak opened this issue 2 years ago • 1 comments

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

mariusrak avatar Jun 10 '22 23:06 mariusrak

Hi @mariusrak. I do agree, that the deprecated way should not be considered a standard one. We'll update the documentation accordingly.

radekmie avatar Jun 27 '22 13:06 radekmie