Closed kotarella1110 closed 9 months ago
Size Change: +10 B (0%)
Total Size: 25.4 kB
Filename | Size | Change |
---|---|---|
dist/resolvers.js |
471 B | +4 B (+1%) |
dist/resolvers.module.js |
485 B | +3 B (+1%) |
dist/resolvers.umd.js |
559 B | -3 B (-1%) |
zod/dist/zod.js |
583 B | +3 B (+1%) |
zod/dist/zod.module.js |
605 B | +5 B (+1%) |
zod/dist/zod.umd.js |
685 B | -2 B (0%) |
Related Issue
https://github.com/react-hook-form/react-hook-form/issues/10391
Core PR
https://github.com/react-hook-form/resolvers/pull/636
Summary
This PR is an experimental implementation for supporting Server Actions in React Hook Form. Its purpose is to explore the best way to support Server Actions within React Hook Form, and it's important to note that the changes proposed in this PR may not be adopted as is.
Additionally, this PR makes minimal changes, and there are various other considerations that need to be addressed.
Changes Made
When importing resolvers in a react-server context, the following error occurs:
To resolve this error, we have made changes to import only logic and utilities that have been conditionally exported. Currently, I have changed only to zodResolver.