svelte-form icon indicating copy to clipboard operation
svelte-form copied to clipboard

Runaway reactivity

Open mustafa0x opened this issue 1 year ago • 4 comments

Wonderful project!

I noticed a strange issue. On each keystroke, helpers.getComponent fires: twice for each input. So if a form has 20 items, it fires 40 times on every key stroke.

https://github.com/pyoner/svelte-form/blob/master/packages/lib/src/helpers.ts#L140

This has performance impacts and could cause unexpected bugs. This seems to be occurring due to the nested bind:values. I tried to resolve this issue, but didn't achieve much.

I'd appreciate if this can be looked into!

mustafa0x avatar Dec 13 '22 01:12 mustafa0x