Conversation
* test: Add task running unit tests with react-compiler * Use official compiler runtime * 📖 fix: code example input field placeholder name (#12296) * 🐞 fix: #12294 ensure Invalid Date is evaluated correctly (#12295) * fix: ensure Invalid Date is evaluated correctly * fix: #12294 ensure Invalid Date is evaluated correctly * fix: #12294 ensure Invalid Date is evaluated correctly * Update createFormControl.ts * Update createFormControl.ts * Update createFormControl.ts --------- Co-authored-by: Beier (Bill) <[email protected]> --------- Co-authored-by: Kim Sang Du <[email protected]> Co-authored-by: Toshiki Saito <[email protected]> Co-authored-by: Beier (Bill) <[email protected]>
|
Size Change: -138 B (-0.24%) Total Size: 58.6 kB
|
|
could I know what's blocking this? |
I will need more time to get to it and then release an RC version of it later. |
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as spam.
This comment was marked as spam.
|
I have found an issue in the latest beta version where Minimal example to show the issue: https://codesandbox.io/p/devbox/q3kgmx?file=%2Fapp%2Fpage.tsx Press the submit button. The form shouldn't submit because of an error, but the |
|
bf72ad4 to
c45c1ff
Compare
Also, I wonder if its the only reason why in the current implementation you coundn't use It would be cool to see this fixed in v8 |
|
as for |
I fully agree. I also think it’s more intuitive to return the defined value rather than a modified object with an added key. This way, the value reference can be preserved as well (though that would also be possible when adding the key property). |
Update ArrayPath type to allow arrays of primitive values (string[], number[], etc.) in addition to object arrays. Previously, useFieldArray field types were limited to objects. Now primitive types are supported by removing the BrowserNativeObject check from ArrayPathImpl, enabling use cases like: - tags: string[] - scores: number[] - matrix: string[][] This is a type-only change with no runtime modifications.
v8
useFieldArrayidtokeykeyNameprops removed foruseFieldArray<Watch />renamenamestonamewatchcall back api removedsetValueno longer direct update useFieldArray, instead usereplaceapihttps://react-hook-form.com/docs/useform/setvalue
install
related #12990