You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Why not something similar to resetField? IMO it's more intuitive.
Current resetFieldMeta API is more like getFieldsDefaultMeta because it doesn't do any actions
Another option - setFieldMeta could accept undefined because getFieldMeta can return undefined and meta itself can be undefined if there is no Field component
Another option - expose defaultFieldMeta, it could be used with setFieldMeta
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
As I know currently there is no short way to reset field's meta without resetting entire field.
With
resetFieldMetait's unclear and verbose:Why not something similar to
resetField? IMO it's more intuitive.Current
resetFieldMetaAPI is more likegetFieldsDefaultMetabecause it doesn't do any actionsAnother option -
setFieldMetacould acceptundefinedbecausegetFieldMetacan return undefined and meta itself can be undefined if there is no Field componentAnother option - expose
defaultFieldMeta, it could be used withsetFieldMetaRelated: #981
Beta Was this translation helpful? Give feedback.
All reactions