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

$message stays undefined on subsequent submission errors #544

Closed
1 task
f-elix opened this issue Dec 27, 2024 · 1 comment
Closed
1 task

$message stays undefined on subsequent submission errors #544

f-elix opened this issue Dec 27, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@f-elix
Copy link

f-elix commented Dec 27, 2024

  • Before posting an issue, read the FAQ and search the previous issues.

Description
When using the message helper to return an error with a status code of 400 and above, the $message store is set on the first submission. On subsequent submissions, the store is cleared but it is never set to the returned message value again.

Repro here: https://www.sveltelab.dev/uvboaqr0th4q102. You can try submitting the form multiple times, and the message never reappears. Note that a 200 works fine.

@f-elix f-elix added the bug Something isn't working label Dec 27, 2024
@ciscoheat
Copy link
Owner

Probably a duplicate of #536, read there for a workaround, or reopen if not related.

@ciscoheat ciscoheat closed this as not planned Won't fix, can't repro, duplicate, stale Dec 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants