sveltekit-superforms icon indicating copy to clipboard operation
sveltekit-superforms copied to clipboard

Add support for form arrays

Open unlocomqx opened this issue 1 year ago • 6 comments

Fixes #396

Currently, it's not possible to add new forms after component init because life hooks functions are being called when a form is created

This PR moves calls to life hooks outside the superForm function

Test page http://localhost:5173/v2/multiple-forms

unlocomqx avatar Apr 07 '24 22:04 unlocomqx

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
superforms ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 11, 2024 9:11pm

vercel[bot] avatar Apr 07 '24 22:04 vercel[bot]

Thank you, do the latest commits fix the message problem, or is it something I have to take a closer look at?

ciscoheat avatar Apr 11 '24 23:04 ciscoheat

Yes, the each key fix resolved the messages issue

Thank you

unlocomqx avatar Apr 12 '24 00:04 unlocomqx

Nice work, hopefully I can add this to the next release!

ciscoheat avatar Apr 12 '24 00:04 ciscoheat

I'll be glad to see it in any release if it's stable and doesn't cause any trouble :))

unlocomqx avatar Apr 12 '24 21:04 unlocomqx

As mentioned in #396, this has to wait until later.

ciscoheat avatar May 05 '24 06:05 ciscoheat