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

clear and retry on useSubmission does not work #504

Open
snnsnn opened this issue Jan 1, 2025 · 0 comments
Open

clear and retry on useSubmission does not work #504

snnsnn opened this issue Jan 1, 2025 · 0 comments

Comments

@snnsnn
Copy link

snnsnn commented Jan 1, 2025

Describe the bug

Hi, I am not sure if I use the API correctly, but the clear and retry methods on the submission object does not work.

Clear resets the submission state but does not clear the input fields, if that is what is intended to do.

Retry does nothing, as the action callback is not invoked.

Please see the demo.

Your Example Website or App

https://stackblitz.com/edit/solidjs-templates-tgmzdcxu

Steps to Reproduce the Bug or Issue

I use the same logic from this example: https://docs.solidjs.com/solid-router/reference/data-apis/use-submission

Expected behavior

They should clear the form and retry submitting the form respectively.

Screenshots or Videos

No response

Platform

Using solidjs/router v^0.15.1

Additional context

No response

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

1 participant