You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when i try to console.log the value in the client, it is there as expected. but once i submit the form, it is not being captured in the action by getValidatedFormData and returns validation error. I try to debug it by adding .optional() to the schema, it turns out that the data is empty. the bank field didn't event sent to the action.
before submitting this issue, i have tried all possible options in. stringifyAllValues as well as in preserveStringified, but nothing happens.
in another remix roject where i use plain useForm with useFormContext from React Hook Form, it works just fine.
The text was updated successfully, but these errors were encountered:
To be completely honest here I have never really looked into if Controller from react-hook-form works with this library, but what you can do is just not use it and use setValue directly in the react-select instead and that will definitely work, eg:
i use remix-hook-fom in my project. I struggled trying to use it with React Select. here is my controlled React Select code:
and here is my implementation:
and here is my action:
when i try to
console.log
the value in the client, it is there as expected. but once i submit the form, it is not being captured in the action bygetValidatedFormData
and returns validation error. I try to debug it by adding.optional()
to the schema, it turns out that the data is empty. thebank
field didn't event sent to the action.before submitting this issue, i have tried all possible options in.
stringifyAllValues
as well as inpreserveStringified
, but nothing happens.in another remix roject where i use plain
useForm
withuseFormContext
from React Hook Form, it works just fine.The text was updated successfully, but these errors were encountered: