Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mention that use:enhance resets the form in the tutorial #1157

Open
samausir opened this issue Feb 11, 2025 · 1 comment
Open

Mention that use:enhance resets the form in the tutorial #1157

samausir opened this issue Feb 11, 2025 · 1 comment

Comments

@samausir
Copy link

It's mentioned in the docs that use:enhance calls form.reset, but in the tutorial there's no mention of it. As someone who just spent a full day debugging why my custom inputs disappear for a second between form submissions and data reload, I'd argue this is a big deal and deserves a big red banner on top (because it kinda pulls the rug from under you by directly manipulating DOM and bypassing the svelte bindings). Or if not that, then it should be an entry in the bullet list of the things it does in the aforementioned tutorial page.

@dummdidumm
Copy link
Member

I don't think we should add this to the tutorial, but we should link to the documentation so you know where to find more details

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants