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
The documentation currently shows that you can create a custom validator and which arguments are provided into the function, however, nowhere is it explained what each of these arguments actually IS. For example, I have a validator that is dependent on two values from the changeset and I thought getting the property from the changes argument would work but in some cases, I am getting undefined. Whether or not this is a bug or just an issue in my code is irrelevant. The problem here is that there is no indication on what these args mean or how they should be used. key, oldValue and newValue are easy enough, but what about changes and content?
The text was updated successfully, but these errors were encountered:
I can't believe I came here looking for this info and an issue has been open for 2 years... We really need some documentation on this @poteto . content arg seems to contain the changeset/model but it is impossible to navigate without an actual useful example.
The documentation currently shows that you can create a custom validator and which arguments are provided into the function, however, nowhere is it explained what each of these arguments actually IS. For example, I have a validator that is dependent on two values from the
changeset
and I thought getting the property from thechanges
argument would work but in some cases, I am gettingundefined
. Whether or not this is a bug or just an issue in my code is irrelevant. The problem here is that there is no indication on what these args mean or how they should be used.key
,oldValue
andnewValue
are easy enough, but what aboutchanges
andcontent
?The text was updated successfully, but these errors were encountered: