-
Hi, and thanks for a fantastic project. Does RHF order the errormessages in any way? I tried to read to the source code, but could not find any ordering. However it sees that RHF order the errormessages according to property name. Is this correct? And if so, is there any way to "turn off" ordering? Or should I just write an iterator of some sort where I send inn the correct order? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Object iteration order may vary across browsers and ECMAScript versions. |
Beta Was this translation helpful? Give feedback.
Object iteration order may vary across browsers and ECMAScript versions.
If you use
Object.keys
orfor in
to iterate over an object's fields, you should implement your own sorting to maintain desired order.