Optimising clearErrors called from JSONForms in this file app/client/src/widgets/JSONFormWidget/fields/useRegisterFieldValidity.ts.
Considering the number of spans generated and the p95 being quiet high around 30ms. During page load for our customer Xolair the clearErrors cumulatively contributed to about 1 second in the main thread scripting.

Relevant discussion - https://theappsmith.slack.com/archives/C024GUDM0LT/p1723206363693759
Optimising clearErrors called from JSONForms in this file
app/client/src/widgets/JSONFormWidget/fields/useRegisterFieldValidity.ts.Considering the number of spans generated and the p95 being quiet high around 30ms. During page load for our customer Xolair the clearErrors cumulatively contributed to about 1 second in the main thread scripting.
Relevant discussion - https://theappsmith.slack.com/archives/C024GUDM0LT/p1723206363693759