Skip to content

Runaway reactivity #34

@mustafa0x

Description

@mustafa0x

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions