-
Noob question- I created my own DateField that handles nulls and string based dates(like (2021-08-29T02:12:11.849Z). But there are a bunch of Date fields(and some are nested). Question- Because right now for the fields that are null. I get - |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
Hi @MDrooker Yes it is possible to tell You can find an example in the documentation here: https://uniforms.tools/docs/examples-custom-fields#customautofield Small note: I noticed that the link to the original code in the aforementioned docs isn't working, so here is the working one: https://github.com/vazco/uniforms/blob/master/packages/uniforms-unstyled/src/AutoField.tsx |
Beta Was this translation helpful? Give feedback.
-
Technically, the I'll update the documentation accordingly. EDIT: See #980. |
Beta Was this translation helpful? Give feedback.
Technically, the
autoForm
that @wadamek65 mentioned is no longer the preferred option, due to the exact problems you've faced. You should use theAutoField.componentDetectorContext
instead - then all of the components are correctly resolved, even when deeply nested.I'll update the documentation accordingly.
EDIT: See #980.