Skip to content

Keep input value on HRM #93

@tiagoapp

Description

@tiagoapp

Using Svelte Kit with HRM, is it possible to save the input values when we change anything on the code?

const name = field('name', '', [required()]); // @hrm:keep doesn't seem to help
const myForm = form(name);
<input type="text" bind:value={$name.value} />
<p>example 123</p>

If i make any change to the "example 123" (for example, add a 4) the value of the input gets reset.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions