remix-hook-form icon indicating copy to clipboard operation
remix-hook-form copied to clipboard

Document `preserveStringified` on `getValidatedFormData`

Open KarstenBuckstegge opened this issue 1 year ago • 1 comments

The third argument of getValidatedFormData is not described in the documentation. Therefor a string value that only contains numbers being passed into getValidatedFormData is automagically converted to a number, causing unexpected validation errors.

Documenting the preserveStringified attribute will explain that behaviour.

KarstenBuckstegge avatar Jun 21 '24 11:06 KarstenBuckstegge

I encountered this as well. Also wonder why the defaults expect everything to be json. That does not make much sense to me as pretty much all forms I implement are just raw text or numbers that zod will coerce for me

timvandam avatar Jul 12 '24 10:07 timvandam

I documented the behavior in the readme!

AlemTuzlak avatar Sep 17 '24 13:09 AlemTuzlak