modular-forms icon indicating copy to clipboard operation
modular-forms copied to clipboard

More bugs with getValues

Open nzdeep opened this issue 2 years ago • 3 comments

https://playground.solidjs.com/anonymous/02fc8d25-3447-49b5-b245-8059618a1194

Should show ```{x: "hello"}````

nzdeep avatar Aug 10 '23 07:08 nzdeep

Highlighting more problems https://playground.solidjs.com/anonymous/6cb3e2a0-7eea-402a-9a7b-baf6d84d4b49

This is smallest reproducible examples I can do, but make no mistake this perpetuates across everything to bigger issues

nzdeep avatar Aug 10 '23 07:08 nzdeep

Thanks for the info.

fabian-hiller avatar Aug 10 '23 07:08 fabian-hiller

The problem behind this bug is that a field must first be initialized by using the Field component or some other field specific method like getValue, since getValues can only return the values of initialized fields. Unlike Modular Forms for Qwik, Solid, Preact and React currently initialize fields lazy.

fabian-hiller avatar Aug 10 '23 12:08 fabian-hiller