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
There is a form.resetFieldMeta(), but all it does is return the default FieldMeta for the given object keys. In fact, the parameter requires Record<string, FieldMeta> and only the keys are used ― the values are discarded.
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
-
Currently, it's very verbose to reset a field's meta state back to default, for example after resetting its value:
There is a
form.resetFieldMeta()
, but all it does is return the defaultFieldMeta
for the given object keys. In fact, the parameter requiresRecord<string, FieldMeta>
and only the keys are used ― the values are discarded.I patched this locally but it could be provided by the lib, no?
Beta Was this translation helpful? Give feedback.
All reactions