-
-
Notifications
You must be signed in to change notification settings - Fork 94
Open
Labels
bugSomething isn't workingSomething isn't working
Description
- Before posting an issue, read the FAQ and search the previous issues.
Description
There's only one form on my page with a set ID. In fact, only one form in the app. But when I make changes in the code, after hot reload, I get a warning that I have a duplicate form ID.
If applicable, a MRE
- Clone https://github.com/gyenabubakar/superforms-infinite-id-warnings
- Install dependencies.
pnpm run dev
and open the app in the browser- In the editor, inside
src/routes/+page.svelte
, replace line 27 with:
const { form: formData, allErrors } = form;
- Return to the browser and check your console. The warning should be visible, even though there's only 1 form in the project.
In the real app I was working on, this warning was infinite, which led to the app crashing. I was no able to reproduce the infinite warning though. I disabled the warning but that didn't make any difference—the app still hangs. If the 'duplicate ID' warning could be accurate, this may fix it?
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working