Replies: 3 comments 3 replies
-
|
what do you mean by |
Beta Was this translation helpful? Give feedback.
-
|
This would be very useful, because adding an controller for an none existing field sets the state of the form dirty, and using useWatch doesn't update when the values changes: #8721 I try to mark a field as conflicted with the server version but this is very hard to do now. |
Beta Was this translation helpful? Give feedback.
-
|
This could be done with https://github.com/bombillazo/rhf-plus/blob/master/docs/form-metadata.md |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
A useful feature would be the ability to add metadata to an input. In order the do this now, I make the input and object and then write a custom
valueproperty andonChangemethod to parse through and pull out the part the gets rendered.So my text input might look like
{text: 'this is what's is rendered', metaData: {}}and then I need to override thevalueandonChangeon the<Controller/>to extract/update just the text part.It would be cool if there was a way to do this that was easier and more native. So for example a method called
setMeta(fieldName: string, meta: object).Beta Was this translation helpful? Give feedback.
All reactions