modular-forms: `getValue` inside `FieldArray` does not work

I have the following component using Modular Forms (great framework by the way, and clever use of typing!). https://github.com/ffMathy/poodle.lol/blob/feature/form-submission/src/routes/index.tsx

On line 125, I have a DateSection component. When I select dates in that section, they are inserted into the form (line 127).

This should cause my FieldArray at line 144 to be able to get the value via getValue of the day property on line 147, but it is undefined.

I know this can’t be, because on line 127, it is being inserted, and I’ve logged it out.

So it would seem as if getValue doesn’t work in this case.

I am using Modular Forms with Qwik.

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 18 (8 by maintainers)

Most upvoted comments

Awesome!! 😍 Great stuff! Will check it out soon and get back to you 🙏

I had planned to do it earlier this week, but didn’t get around to it. It’s on my list. I’ll try to do it tomorrow or this weekend.

Great stuff. Thank you so much for everything you do!