It's more performant to target the field's name rather than make the second argument a nested object in setValue
Examples of incorrect code for this rule:
setValue("yourDetails", { firstName: "value" });
Examples of correct code for this rule:
setValue("yourDetails.firstName", "value");
- type: boolean
- default: false
In V7, the path of index doesn't contain bracket(e.g.
fields.0.value
). However, bracket is required in V6 (fields[0].value
). This option let user config whether to add bracket for an array index while applying the fix.
NA